rename bookmarks/history and form history databases (bug 324545) r=brettw. Fixing the bookmarks unit test too.
Original committer: bryner%brianryner.com Original revision: 1.66 Original date: 2006/02/14 21:02:41 git-svn-id: svn://10.0.0.236/trunk@202639 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -350,9 +350,16 @@ nsNavHistory::InitDB()
|
||||
PRBool tableExists;
|
||||
|
||||
// init DB
|
||||
nsCOMPtr<nsIFile> dbFile;
|
||||
rv = NS_GetSpecialDirectory(NS_APP_USER_PROFILE_50_DIR,
|
||||
getter_AddRefs(dbFile));
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
rv = dbFile->Append(NS_LITERAL_STRING("bookmarks_history.sqlite"));
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
mDBService = do_GetService(MOZ_STORAGE_SERVICE_CONTRACTID, &rv);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
rv = mDBService->OpenSpecialDatabase("profile", getter_AddRefs(mDBConn));
|
||||
rv = mDBService->OpenDatabase(dbFile, getter_AddRefs(mDBConn));
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user