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

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

Issue 566933005: Do not display lock for hosted domains (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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_manager.cc
diff --git a/chrome/browser/profiles/profile_manager.cc b/chrome/browser/profiles/profile_manager.cc
index 20cb9d5d2b6f0975a101f129eff1cbe358c3098b..6ccdb78a1e30b3b5972ef900756cc840d5cc9ae6 100644
--- a/chrome/browser/profiles/profile_manager.cc
+++ b/chrome/browser/profiles/profile_manager.cc
@@ -794,6 +794,9 @@ void ProfileManager::InitProfileUserPrefs(Profile* profile) {
profile->GetPrefs()->SetString(prefs::kSupervisedUserId,
supervised_user_id);
}
+
+ if (switches::IsNewProfileManagement())
noms (inactive) 2014/09/12 19:33:25 This will get triggered on more platforms than des
Mike Lerman 2014/09/15 14:08:55 Excellent point. added OS ifdefs.
+ profiles::UpdateIsProfileLockEnabledIfNeeded(profile);
}
void ProfileManager::RegisterTestingProfile(Profile* profile,

Powered by Google App Engine
This is Rietveld 408576698