зеркало из https://github.com/mozilla/pjs.git
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
This commit is contained in:
Родитель
5c1f15c2d8
Коммит
1befbdebfb
|
@ -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);
|
||||
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче