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

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

Issue 566933005: Do not display lock for hosted domains (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Handle a null in unit tests Created 6 years, 3 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 8567442161b6cfe068d46456cf5cbd7328f845e3..1c74228a7d6edce73bf13ed49c683b06517a943c 100644
--- a/chrome/browser/profiles/profile_window.cc
+++ b/chrome/browser/profiles/profile_window.cc
@@ -291,6 +291,14 @@ void LockProfile(Profile* profile) {
}
}
+bool IsLockAvailable(Profile* profile) {
+ DCHECK(profile);
+ const std::string& hosted_domain = profile->GetPrefs()->
+ GetString(prefs::kGoogleServicesHostedDomain);
+ return hosted_domain == Profile::kNoHostedDomainFound ||
+ hosted_domain == "google.com";
msw 2014/09/19 21:47:40 You CL description describes "google.com" and "gma
Mike Lerman 2014/09/21 00:19:36 gmail.com is not considered a hosted domain. Hoste
msw 2014/09/22 19:58:09 Acknowledged.
+}
+
void CreateGuestProfileForUserManager(
const base::FilePath& profile_path_to_focus,
profiles::UserManagerTutorialMode tutorial_mode,

Powered by Google App Engine
This is Rietveld 408576698