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

Unified Diff: chrome/browser/chromeos/display/display_preferences.cc

Issue 11570009: Split PrefService into PrefService, PrefServiceSimple and PrefServiceSyncable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments. Created 8 years 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/chromeos/display/display_preferences.cc
diff --git a/chrome/browser/chromeos/display/display_preferences.cc b/chrome/browser/chromeos/display/display_preferences.cc
index 33e89f137abb8d10817d6bf62e83630f3dd55df0..5d895f6e7c6e99cb5293bb38072970b92f910e5f 100644
--- a/chrome/browser/chromeos/display/display_preferences.cc
+++ b/chrome/browser/chromeos/display/display_preferences.cc
@@ -147,28 +147,22 @@ void NotifyDisplayOverscans() {
} // namespace
-void RegisterDisplayLocalStatePrefs(PrefService* local_state) {
+void RegisterDisplayLocalStatePrefs(PrefServiceSimple* local_state) {
// The default secondary display layout.
local_state->RegisterIntegerPref(prefs::kSecondaryDisplayLayout,
- static_cast<int>(ash::DisplayLayout::RIGHT),
- PrefService::UNSYNCABLE_PREF);
+ static_cast<int>(ash::DisplayLayout::RIGHT));
// The default offset of the secondary display position from the primary
// display.
- local_state->RegisterIntegerPref(prefs::kSecondaryDisplayOffset,
- 0,
- PrefService::UNSYNCABLE_PREF);
+ local_state->RegisterIntegerPref(prefs::kSecondaryDisplayOffset, 0);
// Per-display preference.
- local_state->RegisterDictionaryPref(prefs::kSecondaryDisplays,
- PrefService::UNSYNCABLE_PREF);
+ local_state->RegisterDictionaryPref(prefs::kSecondaryDisplays);
// Primary output name.
local_state->RegisterInt64Pref(prefs::kPrimaryDisplayID,
- gfx::Display::kInvalidDisplayID,
- PrefService::UNSYNCABLE_PREF);
+ gfx::Display::kInvalidDisplayID);
// Display overscan preference.
- local_state->RegisterDictionaryPref(prefs::kDisplayOverscans,
- PrefService::UNSYNCABLE_PREF);
+ local_state->RegisterDictionaryPref(prefs::kDisplayOverscans);
}
void SetDisplayLayoutPref(const gfx::Display& display,

Powered by Google App Engine
This is Rietveld 408576698