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

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: Rebased just in case as the CL is a few days old now plus I got my branches all mixed up a bit. 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
« no previous file with comments | « chrome/browser/profiles/profile_io_data.h ('k') | chrome/browser/tab_contents/render_view_context_menu.cc » ('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 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())
« no previous file with comments | « chrome/browser/profiles/profile_io_data.h ('k') | chrome/browser/tab_contents/render_view_context_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698