Index: chrome/browser/profiles/profile_window.cc |
diff --git a/chrome/browser/profiles/profile_window.cc b/chrome/browser/profiles/profile_window.cc |
index 0fe8a0cb7d487e2d506295fa45f2d39043ec652b..d626ec38d5a2fc708b4a847a4ce6f2666b71c10b 100644 |
--- a/chrome/browser/profiles/profile_window.cc |
+++ b/chrome/browser/profiles/profile_window.cc |
@@ -314,7 +314,9 @@ bool IsLockAvailable(Profile* profile) { |
GetString(prefs::kGoogleServicesHostedDomain); |
return switches::IsNewProfileManagement() && |
(hosted_domain == Profile::kNoHostedDomainFound || |
- hosted_domain == "google.com"); |
+ hosted_domain == "google.com") && |
+ g_browser_process->local_state()-> |
+ GetBoolean(prefs::kSupervisedUserExistsOrExisted); |
} |
void CreateGuestProfileForUserManager( |