| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/chromeos/chromeos_version.h" | 7 #include "base/chromeos/chromeos_version.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/i18n/time_formatting.h" | 9 #include "base/i18n/time_formatting.h" |
| 10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
| (...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 prefs->RegisterBooleanPref(prefs::kShow3gPromoNotification, | 262 prefs->RegisterBooleanPref(prefs::kShow3gPromoNotification, |
| 263 true, | 263 true, |
| 264 PrefServiceSyncable::UNSYNCABLE_PREF); | 264 PrefServiceSyncable::UNSYNCABLE_PREF); |
| 265 | 265 |
| 266 // Initially all existing users would see "What's new" | 266 // Initially all existing users would see "What's new" |
| 267 // for current version after update. | 267 // for current version after update. |
| 268 prefs->RegisterStringPref(prefs::kChromeOSReleaseNotesVersion, | 268 prefs->RegisterStringPref(prefs::kChromeOSReleaseNotesVersion, |
| 269 "0.0.0.0", | 269 "0.0.0.0", |
| 270 PrefServiceSyncable::SYNCABLE_PREF); | 270 PrefServiceSyncable::SYNCABLE_PREF); |
| 271 | 271 |
| 272 // OAuth1 all access token and secret pair. | 272 if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kForceOAuth2)) { |
| 273 prefs->RegisterStringPref(prefs::kOAuth1Token, | 273 // Legacy OAuth1 all access token and secret pair. |
| 274 "", | 274 prefs->RegisterStringPref(prefs::kOAuth1Token, |
| 275 PrefServiceSyncable::UNSYNCABLE_PREF); | 275 "", |
| 276 prefs->RegisterStringPref(prefs::kOAuth1Secret, | 276 PrefServiceSyncable::UNSYNCABLE_PREF); |
| 277 "", | 277 prefs->RegisterStringPref(prefs::kOAuth1Secret, |
| 278 PrefServiceSyncable::UNSYNCABLE_PREF); | 278 "", |
| 279 PrefServiceSyncable::UNSYNCABLE_PREF); |
| 280 } |
| 279 | 281 |
| 280 // TODO(wad): Once UI is connected, a final default can be set. At that point | 282 // TODO(wad): Once UI is connected, a final default can be set. At that point |
| 281 // change this pref from UNSYNCABLE to SYNCABLE. | 283 // change this pref from UNSYNCABLE to SYNCABLE. |
| 282 prefs->RegisterBooleanPref(prefs::kEnableCrosDRM, | 284 prefs->RegisterBooleanPref(prefs::kEnableCrosDRM, |
| 283 true, | 285 true, |
| 284 PrefServiceSyncable::UNSYNCABLE_PREF); | 286 PrefServiceSyncable::UNSYNCABLE_PREF); |
| 285 | 287 |
| 286 prefs->RegisterBooleanPref(prefs::kExternalStorageDisabled, | 288 prefs->RegisterBooleanPref(prefs::kExternalStorageDisabled, |
| 287 false, | 289 false, |
| 288 PrefServiceSyncable::UNSYNCABLE_PREF); | 290 PrefServiceSyncable::UNSYNCABLE_PREF); |
| (...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 777 | 779 |
| 778 input_method::AutoRepeatRate rate; | 780 input_method::AutoRepeatRate rate; |
| 779 rate.initial_delay_in_ms = xkb_auto_repeat_delay_pref_.GetValue(); | 781 rate.initial_delay_in_ms = xkb_auto_repeat_delay_pref_.GetValue(); |
| 780 rate.repeat_interval_in_ms = xkb_auto_repeat_interval_pref_.GetValue(); | 782 rate.repeat_interval_in_ms = xkb_auto_repeat_interval_pref_.GetValue(); |
| 781 DCHECK(rate.initial_delay_in_ms > 0); | 783 DCHECK(rate.initial_delay_in_ms > 0); |
| 782 DCHECK(rate.repeat_interval_in_ms > 0); | 784 DCHECK(rate.repeat_interval_in_ms > 0); |
| 783 input_method::XKeyboard::SetAutoRepeatRate(rate); | 785 input_method::XKeyboard::SetAutoRepeatRate(rate); |
| 784 } | 786 } |
| 785 | 787 |
| 786 } // namespace chromeos | 788 } // namespace chromeos |
| OLD | NEW |