PR_AtomicIncrement(&g_InstanceCount); NS_INIT_REFCNT();
NS_INIT_REFCNT(); mStartingUp = PR_FALSE; mAutomigrate = PR_FALSE; mOutofDiskSpace = PR_FALSE; mDiskSpaceErrorQuitCalled = PR_FALSE; mCurrentProfileAvailable = PR_FALSE;  mIsUILocaleSpecified = PR_FALSE; mIsContentLocaleSpecified = PR_FALSE;  if (gInstanceCount++ == 0) {  gProfileDataAccess = new nsProfileAccess();  gLocaleProfiles = new nsHashtable();     sApp_PrefsDirectory50         = NS_NewAtom(NS_APP_PREFS_50_DIR); sApp_PreferencesFile50        = NS_NewAtom(NS_APP_PREFS_50_FILE);   sApp_UserProfileDirectory50   = NS_NewAtom(NS_APP_USER_PROFILE_50_DIR);   sApp_UserChromeDirectory      = NS_NewAtom(NS_APP_USER_CHROME_DIR);   sApp_LocalStore50             = NS_NewAtom(NS_APP_LOCALSTORE_50_FILE); sApp_History50                = NS_NewAtom(NS_APP_HISTORY_50_FILE); sApp_UsersPanels50            = NS_NewAtom(NS_APP_USER_PANELS_50_FILE); sApp_UsersMimeTypes50         = NS_NewAtom(NS_APP_USER_MIMETYPES_50_FILE);   sApp_BookmarksFile50          = NS_NewAtom(NS_APP_BOOKMARKS_50_FILE);   sApp_DownloadsFile50          = NS_NewAtom(NS_APP_DOWNLOADS_50_FILE);   sApp_SearchFile50             = NS_NewAtom(NS_APP_SEARCH_50_FILE);   sApp_MailDirectory50          = NS_NewAtom(NS_APP_MAIL_50_DIR); sApp_ImapMailDirectory50      = NS_NewAtom(NS_APP_IMAP_MAIL_50_DIR); sApp_NewsDirectory50          = NS_NewAtom(NS_APP_NEWS_50_DIR); sApp_MessengerFolderCache50   = NS_NewAtom(NS_APP_MESSENGER_FOLDER_CACHE_50_DIR);  nsresult rv; nsCOMPtr<nsIDirectoryService> directoryService = do_GetService(NS_DIRECTORY_SERVICE_CONTRACTID, &rv); if (NS_SUCCEEDED(rv)) directoryService->RegisterProvider(this); }
nsProfile::nsProfile(): m_reg(nsnull){  PR_AtomicIncrement(&g_InstanceCount);  NS_INIT_REFCNT();}