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

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: Fix indentation issues. 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 26c314b454f0c518890ab196c4aafb3118829cbb..e06da257cd177ca889bd1c3b0e848411884bd03e 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
@@ -787,6 +790,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