Fix bug 159889: replace the hardcode of "@mozilla.org/preferences;1" with NS_PREF_CONTRACTID

Patch by leon.zhang@sun.com
r=Henry, sr=alecf


git-svn-id: svn://10.0.0.236/trunk@235807 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
henry.jia%sun.com 2007-09-12 17:50:12 +00:00
parent 639c45905a
commit ac8abd69cd

View File

@ -4792,7 +4792,7 @@ nsBookmarksService::LoadBookmarks()
printf("Start reading in bookmarks.html\n");
#endif
nsCOMPtr<nsIPrefService> prefSvc(do_GetService("@mozilla.org/preferences;1"));
nsCOMPtr<nsIPrefService> prefSvc(do_GetService(NS_PREF_CONTRACTID));
nsCOMPtr<nsIPrefBranch> bookmarksPrefs;
if (prefSvc)
prefSvc->GetBranch("browser.bookmarks.", getter_AddRefs(bookmarksPrefs));