NS_INIT_REFCNT(); mAutomigrate = PR_FALSE; mOutofDiskSpace = PR_FALSE; mDiskSpaceErrorQuitCalled = PR_FALSE;  if (gInstanceCount++ == 0) {  gProfileDataAccess = new nsProfileAccess();     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_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; NS_WITH_SERVICE(nsIDirectoryService, directoryService, NS_DIRECTORY_SERVICE_CONTRACTID, &rv); if (NS_SUCCEEDED(rv)) directoryService->RegisterProvider(this); }
PR_AtomicIncrement(&g_InstanceCount); NS_INIT_REFCNT();
nsProfile::nsProfile(){    NS_INIT_REFCNT();    mAutomigrate = PR_FALSE;    mOutofDiskSpace = PR_FALSE;    mDiskSpaceErrorQuitCalled = PR_FALSE;    if (gInstanceCount++ == 0) {                gProfileDataAccess = new nsProfileAccess();               // Make our directory atoms               // Preferences:         sApp_PrefsDirectory50         = NS_NewAtom(NS_APP_PREFS_50_DIR);         sApp_PreferencesFile50        = NS_NewAtom(NS_APP_PREFS_50_FILE);               // Profile:         sApp_UserProfileDirectory50   = NS_NewAtom(NS_APP_USER_PROFILE_50_DIR);               // Application Directories:         sApp_UserChromeDirectory      = NS_NewAtom(NS_APP_USER_CHROME_DIR);                // Aplication Files:         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);                // Bookmarks:         sApp_BookmarksFile50          = NS_NewAtom(NS_APP_BOOKMARKS_50_FILE);                // Search         sApp_SearchFile50             = NS_NewAtom(NS_APP_SEARCH_50_FILE);                // MailNews         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;         NS_WITH_SERVICE(nsIDirectoryService, directoryService, NS_DIRECTORY_SERVICE_CONTRACTID, &rv);         if (NS_SUCCEEDED(rv))            directoryService->RegisterProvider(this);    }}