| 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 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 269 prefs->RegisterBooleanPref(prefs::kShow3gPromoNotification, | 269 prefs->RegisterBooleanPref(prefs::kShow3gPromoNotification, |
| 270 true, | 270 true, |
| 271 PrefServiceSyncable::UNSYNCABLE_PREF); | 271 PrefServiceSyncable::UNSYNCABLE_PREF); |
| 272 | 272 |
| 273 // Initially all existing users would see "What's new" | 273 // Initially all existing users would see "What's new" |
| 274 // for current version after update. | 274 // for current version after update. |
| 275 prefs->RegisterStringPref(prefs::kChromeOSReleaseNotesVersion, | 275 prefs->RegisterStringPref(prefs::kChromeOSReleaseNotesVersion, |
| 276 "0.0.0.0", | 276 "0.0.0.0", |
| 277 PrefServiceSyncable::SYNCABLE_PREF); | 277 PrefServiceSyncable::SYNCABLE_PREF); |
| 278 | 278 |
| 279 // OAuth1 all access token and secret pair. | 279 if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kForceOAuth2)) { |
| 280 prefs->RegisterStringPref(prefs::kOAuth1Token, | 280 // Legacy OAuth1 all access token and secret pair. |
| 281 "", | 281 prefs->RegisterStringPref(prefs::kOAuth1Token, |
| 282 PrefServiceSyncable::UNSYNCABLE_PREF); | 282 "", |
| 283 prefs->RegisterStringPref(prefs::kOAuth1Secret, | 283 PrefServiceSyncable::UNSYNCABLE_PREF); |
| 284 "", | 284 prefs->RegisterStringPref(prefs::kOAuth1Secret, |
| 285 PrefServiceSyncable::UNSYNCABLE_PREF); | 285 "", |
| 286 PrefServiceSyncable::UNSYNCABLE_PREF); |
| 287 } |
| 286 | 288 |
| 287 // TODO(wad): Once UI is connected, a final default can be set. At that point | 289 // TODO(wad): Once UI is connected, a final default can be set. At that point |
| 288 // change this pref from UNSYNCABLE to SYNCABLE. | 290 // change this pref from UNSYNCABLE to SYNCABLE. |
| 289 prefs->RegisterBooleanPref(prefs::kEnableCrosDRM, | 291 prefs->RegisterBooleanPref(prefs::kEnableCrosDRM, |
| 290 true, | 292 true, |
| 291 PrefServiceSyncable::UNSYNCABLE_PREF); | 293 PrefServiceSyncable::UNSYNCABLE_PREF); |
| 292 | 294 |
| 293 prefs->RegisterBooleanPref(prefs::kExternalStorageDisabled, | 295 prefs->RegisterBooleanPref(prefs::kExternalStorageDisabled, |
| 294 false, | 296 false, |
| 295 PrefServiceSyncable::UNSYNCABLE_PREF); | 297 PrefServiceSyncable::UNSYNCABLE_PREF); |
| (...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 784 | 786 |
| 785 input_method::AutoRepeatRate rate; | 787 input_method::AutoRepeatRate rate; |
| 786 rate.initial_delay_in_ms = xkb_auto_repeat_delay_pref_.GetValue(); | 788 rate.initial_delay_in_ms = xkb_auto_repeat_delay_pref_.GetValue(); |
| 787 rate.repeat_interval_in_ms = xkb_auto_repeat_interval_pref_.GetValue(); | 789 rate.repeat_interval_in_ms = xkb_auto_repeat_interval_pref_.GetValue(); |
| 788 DCHECK(rate.initial_delay_in_ms > 0); | 790 DCHECK(rate.initial_delay_in_ms > 0); |
| 789 DCHECK(rate.repeat_interval_in_ms > 0); | 791 DCHECK(rate.repeat_interval_in_ms > 0); |
| 790 input_method::XKeyboard::SetAutoRepeatRate(rate); | 792 input_method::XKeyboard::SetAutoRepeatRate(rate); |
| 791 } | 793 } |
| 792 | 794 |
| 793 } // namespace chromeos | 795 } // namespace chromeos |
| OLD | NEW |