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 88da911c037d82f02d72235ecc8bf2a0ecc8e1a0..d3f2cc838e667ccf28f516ce62c11fb14ef76584 100644 |
--- a/chrome/browser/profiles/profile_io_data.cc |
+++ b/chrome/browser/profiles/profile_io_data.cc |
@@ -197,6 +197,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 |
@@ -565,6 +569,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()) |