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

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

Issue 12088040: Add a SigninAllowed policy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add tests and link UpdateLogin to kSigninAllowed pref. Created 7 years, 10 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.h
diff --git a/chrome/browser/profiles/profile.h b/chrome/browser/profiles/profile.h
index 65eb0c9225944af750b305f6c0da13ce2fe26266..2d80f003848ce38b36ec707e7279c20f4d62a850 100644
--- a/chrome/browser/profiles/profile.h
+++ b/chrome/browser/profiles/profile.h
@@ -353,6 +353,10 @@ class Profile : public content::BrowserContext {
// disabled or controlled by configuration management.
bool IsSyncAccessible();
+ // Checks whether signin to Chrome is allowed by the user. Returns false if
+ // signin is disabled or controlled by configuration management.
+ bool IsSigninAllowed();
+
// Send NOTIFICATION_PROFILE_DESTROYED for this Profile, if it has not
// already been sent. It is necessary because most Profiles are destroyed by
// ProfileDestroyer, but in tests, some are not.

Powered by Google App Engine
This is Rietveld 408576698