--- profile/src/nsProfile.cpp Fri Jun 21 15:52:12 2002 +++ profile/src/nsProfile.cpp Fri Jun 21 15:51:24 2002 @@ -555,6 +555,7 @@ rv = curProfileDir->Exists(&exists); if (NS_FAILED(rv) || !exists) profileURLStr = PROFILE_MANAGER_URL; +#if 0 if (exists) { // If the profile is locked, we need the UI @@ -564,6 +565,7 @@ if (NS_FAILED(rv)) profileURLStr = PROFILE_MANAGER_URL; } +#endif } else profileURLStr = PROFILE_SELECTION_URL; @@ -1200,6 +1202,7 @@ else isSwitch = PR_FALSE; +#if 0 nsProfileLock localLock; nsCOMPtr localProfileDir(do_QueryInterface(profileDir, &rv)); if (NS_FAILED(rv)) return rv; @@ -1209,6 +1212,7 @@ NS_ERROR("Could not get profile directory lock."); return rv; } +#endif nsCOMPtr observerService = do_GetService("@mozilla.org/observer-service;1", &rv); @@ -1244,7 +1248,9 @@ gProfileDataAccess->SetCurrentProfile(aCurrentProfile); gProfileDataAccess->mProfileDataChanged = PR_TRUE; gProfileDataAccess->UpdateRegistry(nsnull); +#if 0 mCurrentProfileLock = localLock; +#endif if (NS_FAILED(rv)) return rv; mCurrentProfileAvailable = PR_TRUE; @@ -1331,7 +1337,9 @@ UpdateCurrentProfileModTime(PR_TRUE); mCurrentProfileAvailable = PR_FALSE; mCurrentProfileName.Truncate(0); +#if 0 mCurrentProfileLock.Unlock(); +#endif return NS_OK; }