Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7532)

Unified Diff: chrome/browser/profiles/profile_window.cc

Issue 633233002: Lock only permitted where a supervised user is or was. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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(

Powered by Google App Engine
This is Rietveld 408576698