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

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

Issue 12088040: Add a SigninAllowed policy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Extract managed user specific stuff into another changelist. 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_io_data.cc
diff --git a/chrome/browser/profiles/profile_io_data.cc b/chrome/browser/profiles/profile_io_data.cc
index 37b24d5d7fb7c45a89144e8bcbf15eecd34c05d8..0d2b2bea10be1b3a640fb4fd585134727d088174 100644
--- a/chrome/browser/profiles/profile_io_data.cc
+++ b/chrome/browser/profiles/profile_io_data.cc
@@ -319,6 +319,9 @@ void ProfileIOData::InitializeOnUIThread(Profile* profile) {
sync_disabled_.Init(prefs::kSyncManaged, pref_service);
sync_disabled_.MoveToThread(io_message_loop_proxy);
+
+ signin_allowed_.Init(prefs::kSigninAllowed, pref_service);
+ signin_allowed_.MoveToThread(io_message_loop_proxy);
}
// The URLBlacklistManager has to be created on the UI thread to register
@@ -774,6 +777,7 @@ void ProfileIOData::ShutdownOnUIThread() {
safe_browsing_enabled_.Destroy();
printing_enabled_.Destroy();
sync_disabled_.Destroy();
+ signin_allowed_.Destroy();
session_startup_pref_.Destroy();
#if defined(ENABLE_CONFIGURATION_POLICY)
if (url_blacklist_manager_.get())

Powered by Google App Engine
This is Rietveld 408576698