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

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: Address nits and rebase to ToT. 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
« no previous file with comments | « chrome/browser/profiles/profile_io_data.h ('k') | chrome/browser/signin/signin_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ad50def0b5cf1d9756805df9ef71b53ed862c35d..f3b2bd84e45eca784eb10cc829cb957b08f9f127 100644
--- a/chrome/browser/profiles/profile_io_data.cc
+++ b/chrome/browser/profiles/profile_io_data.cc
@@ -305,6 +305,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
@@ -791,6 +794,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())
« no previous file with comments | « chrome/browser/profiles/profile_io_data.h ('k') | chrome/browser/signin/signin_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698