rv = bookmarksFile->GetFileSpec(aResult); if (NS_FAILED(rv)) break; } while (0);
nsCAutoString pathBuf; rv = bookmarksFile->GetNativePath(pathBuf); if (NS_SUCCEEDED(rv)) *aResult = pathBuf.get(); } }
nsBookmarksService::GetBookmarksFile(nsFileSpec* aResult){	nsresult rv;	// Look for bookmarks.html in the current profile	// directory. This is as convoluted as it seems because we	// want to 1) not break viewer (which has no profiles), and 2)	// still deal reasonably (in the short term) when no	// bookmarks.html is installed in the profile directory.	do {		nsCOMPtr <nsIFileSpec> bookmarksFile;		NS_WITH_SERVICE(nsIFileLocator, locator, kFileLocatorCID, &rv);		if (NS_FAILED(rv)) break;		rv = locator->GetFileLocation(nsSpecialFileSpec::App_BookmarksFile50, getter_AddRefs(bookmarksFile));		if (NS_FAILED(rv)) break;		rv = bookmarksFile->GetFileSpec(aResult);		if (NS_FAILED(rv)) break;	} while (0);#ifdef DEBUG	if (NS_FAILED(rv)) {		*aResult = nsSpecialSystemDirectory(nsSpecialSystemDirectory::OS_CurrentProcessDirectory);		*aResult += "chrome";		*aResult += "bookmarks";		*aResult += "content";		*aResult += "default";		*aResult += "bookmarks.html";		rv = NS_OK;	}#endif	return rv;}