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

Unified Diff: chrome/browser/profiles/profile_impl.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/printing/printing_message_filter.cc ('k') | chrome/browser/profiles/profile_io_data.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile_impl.cc
diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc
index 7a5199b570866ce71fbd6ab0f9d35ce0783ed4e2..0da0aeacd0aec63b82420cbe60c31baa5abc9f7d 100644
--- a/chrome/browser/profiles/profile_impl.cc
+++ b/chrome/browser/profiles/profile_impl.cc
@@ -222,6 +222,18 @@ void ProfileImpl::RegisterUserPrefs(PrefService* prefs) {
prefs->RegisterStringPref(prefs::kHomePage,
std::string(),
PrefService::SYNCABLE_PREF);
+#if defined(ENABLE_PRINTING)
+ prefs->RegisterBooleanPref(prefs::kPrintingEnabled,
+ true,
+ PrefService::UNSYNCABLE_PREF);
+#endif
+ prefs->RegisterBooleanPref(prefs::kPrintPreviewDisabled,
+#if defined(GOOGLE_CHROME_BUILD)
+ false,
+#else
+ true,
+#endif
+ PrefService::UNSYNCABLE_PREF);
// Initialize the cache prefs.
prefs->RegisterFilePathPref(prefs::kDiskCacheDir,
« no previous file with comments | « chrome/browser/printing/printing_message_filter.cc ('k') | chrome/browser/profiles/profile_io_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698