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

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

Issue 12088040: Add a SigninAllowed policy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use the IsSyncAccessible method to propagate the settings. Created 7 years, 11 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.cc
diff --git a/chrome/browser/profiles/profile.cc b/chrome/browser/profiles/profile.cc
index 804bcf48fdf836f1fb9587b7ff54aaad12bf1edd..f68c24c48d2fa623806af230d4bc204435bb9d8a 100644
--- a/chrome/browser/profiles/profile.cc
+++ b/chrome/browser/profiles/profile.cc
@@ -130,6 +130,9 @@ bool Profile::IsGuestSession() const {
}
bool Profile::IsSyncAccessible() {
+ if (GetPrefs()->GetBoolean(prefs::kManagedUserNoSignin))
+ return false;
Andrew T Wilson (Slow) 2013/01/30 10:30:33 I have a CL in flight that changes how this works
+
browser_sync::SyncPrefs prefs(GetPrefs());
return ProfileSyncService::IsSyncEnabled() && !prefs.IsManaged();
}

Powered by Google App Engine
This is Rietveld 408576698