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

Unified Diff: chrome/browser/printing/print_dialog_cloud.cc

Issue 6905044: Refactor preference syncing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Really fix. And rebase Created 9 years, 7 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/cloud_print/cloud_print_url.cc ('k') | chrome/browser/profiles/profile.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/printing/print_dialog_cloud.cc
diff --git a/chrome/browser/printing/print_dialog_cloud.cc b/chrome/browser/printing/print_dialog_cloud.cc
index 64c2fea782080f70ad6dc44cccf33939b2d19428..052aa9a4cc9fef779cdffc959e81efeb8aa9ed60 100644
--- a/chrome/browser/printing/print_dialog_cloud.cc
+++ b/chrome/browser/printing/print_dialog_cloud.cc
@@ -533,11 +533,13 @@ void CreateDialogImpl(const FilePath& path_to_file,
DCHECK(pref_service);
if (!pref_service->FindPreference(prefs::kCloudPrintDialogWidth)) {
pref_service->RegisterIntegerPref(prefs::kCloudPrintDialogWidth,
- kDefaultWidth);
+ kDefaultWidth,
+ PrefService::UNSYNCABLE_PREF);
}
if (!pref_service->FindPreference(prefs::kCloudPrintDialogHeight)) {
pref_service->RegisterIntegerPref(prefs::kCloudPrintDialogHeight,
- kDefaultHeight);
+ kDefaultHeight,
+ PrefService::UNSYNCABLE_PREF);
}
int width = pref_service->GetInteger(prefs::kCloudPrintDialogWidth);
« no previous file with comments | « chrome/browser/printing/cloud_print/cloud_print_url.cc ('k') | chrome/browser/profiles/profile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698