Chromium Code Reviews| 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, |