| 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..307be8a7e82e97b9031b5ca37d5f30c70c8aa170 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::kProfileHostedDomain);
|
| + return hosted_domain == Profile::kNoHostedDomainFound ||
|
| + hosted_domain == "google.com";
|
| +}
|
| +
|
| void CreateGuestProfileForUserManager(
|
| const base::FilePath& profile_path_to_focus,
|
| profiles::UserManagerTutorialMode tutorial_mode,
|
|
|