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

Unified Diff: chrome/browser/chromeos/login/wizard_controller.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/chromeos/login/user_manager.cc ('k') | chrome/browser/chromeos/preferences.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/wizard_controller.cc
diff --git a/chrome/browser/chromeos/login/wizard_controller.cc b/chrome/browser/chromeos/login/wizard_controller.cc
index 1f9db18cf635103c02f45c62fb63b51be4efeda9..d04aae110536573bee3cdb3eaf1d964be77a3a8a 100644
--- a/chrome/browser/chromeos/login/wizard_controller.cc
+++ b/chrome/browser/chromeos/login/wizard_controller.cc
@@ -436,14 +436,24 @@ void WizardController::SkipRegistration() {
// static
void WizardController::RegisterPrefs(PrefService* local_state) {
- local_state->RegisterBooleanPref(kOobeComplete, false);
- local_state->RegisterIntegerPref(kDeviceRegistered, -1);
- local_state->RegisterBooleanPref(kEulaAccepted, false);
- local_state->RegisterStringPref(kInitialLocale, "en-US");
+ local_state->RegisterBooleanPref(kOobeComplete,
+ false,
+ PrefService::UNSYNCABLE_PREF);
+ local_state->RegisterIntegerPref(kDeviceRegistered,
+ -1,
+ PrefService::UNSYNCABLE_PREF);
+ local_state->RegisterBooleanPref(kEulaAccepted,
+ false,
+ PrefService::UNSYNCABLE_PREF);
+ local_state->RegisterStringPref(kInitialLocale,
+ "en-US",
+ PrefService::UNSYNCABLE_PREF);
// Check if the pref is already registered in case
// Preferences::RegisterUserPrefs runs before this code in the future.
if (local_state->FindPreference(prefs::kAccessibilityEnabled) == NULL) {
- local_state->RegisterBooleanPref(prefs::kAccessibilityEnabled, false);
+ local_state->RegisterBooleanPref(prefs::kAccessibilityEnabled,
+ false,
+ PrefService::UNSYNCABLE_PREF);
}
}
« no previous file with comments | « chrome/browser/chromeos/login/user_manager.cc ('k') | chrome/browser/chromeos/preferences.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698