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

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: 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_impl.cc
diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc
index 36e24cb81346853aacea9b1fc9952951babe1eec..634940ae42aaa943b99fb5eb05abfb70c36d4619 100644
--- a/chrome/browser/profiles/profile_impl.cc
+++ b/chrome/browser/profiles/profile_impl.cc
@@ -221,6 +221,18 @@ void ProfileImpl::RegisterUserPrefs(PrefService* prefs) {
prefs->RegisterStringPref(prefs::kHomePage,
std::string(),
PrefService::SYNCABLE_PREF);
+#if defined(ENABLE_PRINTING)
+ prefs->RegisterBooleanPref(prefs::kPrintingEnabled,
Albert Bodenhamer 2012/07/18 17:00:10 PrintingEnabled is driven by device policy. Does
bartfab (slow) 2012/07/18 17:18:30 The pref exists as a vehicle for policy: Policy se
Albert Bodenhamer 2012/07/18 17:23:20 Sounds good. On 2012/07/18 17:18:30, bartfab wrote
+ 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,

Powered by Google App Engine
This is Rietveld 408576698