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

Unified Diff: chrome/browser/chromeos/preferences.cc

Issue 11824051: Revert 175871 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/preferences.cc
===================================================================
--- chrome/browser/chromeos/preferences.cc (revision 175934)
+++ chrome/browser/chromeos/preferences.cc (working copy)
@@ -93,9 +93,9 @@
prefs->RegisterBooleanPref(prefs::kLabsAdvancedFilesystemEnabled,
false,
PrefServiceSyncable::UNSYNCABLE_PREF);
- // Check if the accessibility pref is already registered, which can happen
+ // Check if the accessibility prefs are already registered, which can happen
// in WizardController::RegisterPrefs. We still want to try to register
- // the pref here in case of Chrome/Linux with ChromeOS=1.
+ // the prefs here in case of Chrome/Linux with ChromeOS=1.
if (prefs->FindPreference(prefs::kSpokenFeedbackEnabled) == NULL) {
prefs->RegisterBooleanPref(prefs::kSpokenFeedbackEnabled,
false,
@@ -106,27 +106,20 @@
false,
PrefServiceSyncable::UNSYNCABLE_PREF);
}
- if (prefs->FindPreference(prefs::kScreenMagnifierEnabled) == NULL) {
- prefs->RegisterBooleanPref(prefs::kScreenMagnifierEnabled,
- false,
- PrefServiceSyncable::SYNCABLE_PREF);
- }
- if (prefs->FindPreference(prefs::kScreenMagnifierScale) == NULL) {
- prefs->RegisterDoublePref(prefs::kScreenMagnifierScale,
- std::numeric_limits<double>::min(),
- PrefServiceSyncable::UNSYNCABLE_PREF);
- }
- if (prefs->FindPreference(prefs::kShouldAlwaysShowAccessibilityMenu) ==
- NULL) {
- prefs->RegisterBooleanPref(prefs::kShouldAlwaysShowAccessibilityMenu,
- false,
- PrefServiceSyncable::UNSYNCABLE_PREF);
- }
if (prefs->FindPreference(prefs::kVirtualKeyboardEnabled) == NULL) {
prefs->RegisterBooleanPref(prefs::kVirtualKeyboardEnabled,
false,
PrefServiceSyncable::UNSYNCABLE_PREF);
}
+ prefs->RegisterBooleanPref(prefs::kScreenMagnifierEnabled,
+ false,
+ PrefServiceSyncable::SYNCABLE_PREF);
+ prefs->RegisterDoublePref(prefs::kScreenMagnifierScale,
+ std::numeric_limits<double>::min(),
+ PrefServiceSyncable::UNSYNCABLE_PREF);
+ prefs->RegisterBooleanPref(prefs::kShouldAlwaysShowAccessibilityMenu,
+ false,
+ PrefServiceSyncable::UNSYNCABLE_PREF);
prefs->RegisterIntegerPref(prefs::kMouseSensitivity,
3,
PrefServiceSyncable::SYNCABLE_PREF);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698