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

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

Issue 10808006: Move printing.* prefs from local state to profile (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Retired PrintPreviewUnitTestBase class. Created 8 years, 5 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 2861e3e9388507a27a995744ff463f98219a634c..de558ff395189da0ab03219999ed7daa60d4ecd4 100644
--- a/chrome/browser/profiles/profile_io_data.cc
+++ b/chrome/browser/profiles/profile_io_data.cc
@@ -222,6 +222,10 @@ void ProfileIOData::InitializeOnUIThread(Profile* profile) {
proxy_config_service);
params->profile = profile;
profile_params_.reset(params.release());
+#if defined(ENABLE_PRINTING)
+ printing_enabled_.Init(prefs::kPrintingEnabled, pref_service, NULL);
+ printing_enabled_.MoveToThread(BrowserThread::IO);
+#endif
// The URLBlacklistManager has to be created on the UI thread to register
// observers of |pref_service|, and it also has to clean up on
@@ -589,6 +593,7 @@ void ProfileIOData::ShutdownOnUIThread() {
enable_metrics_.Destroy();
#endif
safe_browsing_enabled_.Destroy();
+ printing_enabled_.Destroy();
session_startup_pref_.Destroy();
#if defined(ENABLE_CONFIGURATION_POLICY)
if (url_blacklist_manager_.get())

Powered by Google App Engine
This is Rietveld 408576698