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:
benjamin%smedbergs.us 2006-07-18 16:24:16 +00:00
Родитель 5c1f15c2d8
Коммит 1befbdebfb
1 изменённых файлов: 8 добавлений и 1 удалений

Просмотреть файл

@ -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);