nsresult rv; rv = bm_AddRefGlobals(); if (NS_FAILED(rv))	return(rv);   rv = gRDF->RegisterDataSource(this, PR_FALSE); if (NS_FAILED(rv)) return rv;   nsCOMPtr<nsIIOService>	pNetService; if (NS_SUCCEEDED(rv = nsServiceManager::GetService(kIOServiceCID, kIIOServiceIID, getter_AddRefs(pNetService)))) { nsCOMPtr<nsIURI>	uri; if (NS_SUCCEEDED(rv = pNetService->NewURI(bookmark_properties, nsnull, getter_AddRefs(uri)))) {  nsCOMPtr<nsIStringBundleService>	stringService; if (NS_SUCCEEDED(rv = nsServiceManager::GetService(kStringBundleServiceCID, kIStringBundleServiceIID, getter_AddRefs(stringService)))) { char	*spec = nsnull; if (NS_SUCCEEDED(rv = uri->GetSpec(&spec)) && (spec)) { nsCOMPtr<nsILocale>		locale = nsnull; if (NS_SUCCEEDED(rv = stringService->CreateBundle(spec, locale, getter_AddRefs(mBundle)))) { } nsCRT::free(spec); spec = nsnull; } } } }    NS_WITH_SERVICE(nsIPref, prefServ, kPrefCID, &rv); if (NS_SUCCEEDED(rv) && (prefServ)) { char	*prefVal = nsnull; if (NS_SUCCEEDED(rv = prefServ->CopyCharPref("custtoolbar.personal_toolbar_folder", &prefVal)) && (prefVal)) { if (*prefVal) { mPersonalToolbarName = prefVal; #ifdef	DEBUG printf("Obtained name of Personal Toolbar from user preferences.\n"); #endif } nsCRT::free(prefVal); prefVal = nsnull; }  if (mPersonalToolbarName.Length() == 0) {  getLocaleString("DefaultPersonalToolbarFolder", mPersonalToolbarName); #ifdef	DEBUG printf("Obtained name of Personal Toolbar from bookmarks string bundle.\n"); #endif }  if (mPersonalToolbarName.Length() == 0) {  mPersonalToolbarName = kDefaultPersonalToolbarFolder; #ifdef	DEBUG printf("Obtained name of Personal Toolbar from fallback hard-coded string.\n"); #endif } }   rv = ReadBookmarks(); if (NS_FAILED(rv))	return(rv);   busyResource = nsnull;  if (!mTimer) { busySchedule = PR_FALSE;  rv = NS_NewTimer(getter_AddRefs(mTimer)); if (NS_FAILED(rv)) return rv; mTimer->Init(nsBookmarksService::FireTimer, this, BOOKMARK_TIMEOUT, NS_PRIORITY_LOWEST, NS_TYPE_REPEATING_SLACK);  }
nsBookmarksService::Init(const char* aURI){	return NS_OK;}