| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/chromeos/preferences.h" | 5 #include "chrome/browser/chromeos/preferences.h" |
| 6 | 6 |
| 7 #include "base/i18n/time_formatting.h" | 7 #include "base/i18n/time_formatting.h" |
| 8 #include "base/metrics/histogram.h" | 8 #include "base/metrics/histogram.h" |
| 9 #include "base/string_split.h" | 9 #include "base/string_split.h" |
| 10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 // Mobile plan notifications default to on. | 176 // Mobile plan notifications default to on. |
| 177 prefs->RegisterBooleanPref(prefs::kShowPlanNotifications, | 177 prefs->RegisterBooleanPref(prefs::kShowPlanNotifications, |
| 178 true, | 178 true, |
| 179 PrefService::SYNCABLE_PREF); | 179 PrefService::SYNCABLE_PREF); |
| 180 | 180 |
| 181 // 3G first-time usage promo will be shown at least once. | 181 // 3G first-time usage promo will be shown at least once. |
| 182 prefs->RegisterBooleanPref(prefs::kShow3gPromoNotification, | 182 prefs->RegisterBooleanPref(prefs::kShow3gPromoNotification, |
| 183 true, | 183 true, |
| 184 PrefService::UNSYNCABLE_PREF); | 184 PrefService::UNSYNCABLE_PREF); |
| 185 | 185 |
| 186 // Carrier deal notification shown count defaults to 0. | |
| 187 prefs->RegisterIntegerPref(prefs::kCarrierDealPromoShown, | |
| 188 0, | |
| 189 PrefService::UNSYNCABLE_PREF); | |
| 190 | |
| 191 // The map of timestamps of the last used file browser handlers. | 186 // The map of timestamps of the last used file browser handlers. |
| 192 prefs->RegisterDictionaryPref(prefs::kLastUsedFileBrowserHandlers, | 187 prefs->RegisterDictionaryPref(prefs::kLastUsedFileBrowserHandlers, |
| 193 PrefService::UNSYNCABLE_PREF); | 188 PrefService::UNSYNCABLE_PREF); |
| 194 } | 189 } |
| 195 | 190 |
| 196 void Preferences::Init(PrefService* prefs) { | 191 void Preferences::Init(PrefService* prefs) { |
| 197 tap_to_click_enabled_.Init(prefs::kTapToClickEnabled, prefs, this); | 192 tap_to_click_enabled_.Init(prefs::kTapToClickEnabled, prefs, this); |
| 198 accessibility_enabled_.Init(prefs::kAccessibilityEnabled, prefs, this); | 193 accessibility_enabled_.Init(prefs::kAccessibilityEnabled, prefs, this); |
| 199 sensitivity_.Init(prefs::kTouchpadSensitivity, prefs, this); | 194 sensitivity_.Init(prefs::kTouchpadSensitivity, prefs, this); |
| 200 use_24hour_clock_.Init(prefs::kUse24HourClock, prefs, this); | 195 use_24hour_clock_.Init(prefs::kUse24HourClock, prefs, this); |
| (...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 536 input_method::AutoRepeatRate rate; | 531 input_method::AutoRepeatRate rate; |
| 537 rate.initial_delay_in_ms = language_xkb_auto_repeat_delay_pref_.GetValue(); | 532 rate.initial_delay_in_ms = language_xkb_auto_repeat_delay_pref_.GetValue(); |
| 538 rate.repeat_interval_in_ms = | 533 rate.repeat_interval_in_ms = |
| 539 language_xkb_auto_repeat_interval_pref_.GetValue(); | 534 language_xkb_auto_repeat_interval_pref_.GetValue(); |
| 540 DCHECK(rate.initial_delay_in_ms > 0); | 535 DCHECK(rate.initial_delay_in_ms > 0); |
| 541 DCHECK(rate.repeat_interval_in_ms > 0); | 536 DCHECK(rate.repeat_interval_in_ms > 0); |
| 542 input_method::SetAutoRepeatRate(rate); | 537 input_method::SetAutoRepeatRate(rate); |
| 543 } | 538 } |
| 544 | 539 |
| 545 } // namespace chromeos | 540 } // namespace chromeos |
| OLD | NEW |