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/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/i18n/time_formatting.h" | 8 #include "base/i18n/time_formatting.h" |
9 #include "base/metrics/histogram.h" | 9 #include "base/metrics/histogram.h" |
10 #include "base/string_split.h" | 10 #include "base/string_split.h" |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 // Mobile plan notifications default to on. | 188 // Mobile plan notifications default to on. |
189 prefs->RegisterBooleanPref(prefs::kShowPlanNotifications, | 189 prefs->RegisterBooleanPref(prefs::kShowPlanNotifications, |
190 true, | 190 true, |
191 PrefService::SYNCABLE_PREF); | 191 PrefService::SYNCABLE_PREF); |
192 | 192 |
193 // 3G first-time usage promo will be shown at least once. | 193 // 3G first-time usage promo will be shown at least once. |
194 prefs->RegisterBooleanPref(prefs::kShow3gPromoNotification, | 194 prefs->RegisterBooleanPref(prefs::kShow3gPromoNotification, |
195 true, | 195 true, |
196 PrefService::UNSYNCABLE_PREF); | 196 PrefService::UNSYNCABLE_PREF); |
197 | 197 |
198 // The map of timestamps of the last used file browser handlers. | |
199 prefs->RegisterDictionaryPref(prefs::kLastUsedFileBrowserHandlers, | |
200 PrefService::UNSYNCABLE_PREF); | |
201 | |
202 // Use shared proxies default to off. | 198 // Use shared proxies default to off. |
203 prefs->RegisterBooleanPref(prefs::kUseSharedProxies, | 199 prefs->RegisterBooleanPref(prefs::kUseSharedProxies, |
204 false, | 200 false, |
205 PrefService::SYNCABLE_PREF); | 201 PrefService::SYNCABLE_PREF); |
206 | 202 |
207 // OAuth1 all access token and secret pair. | 203 // OAuth1 all access token and secret pair. |
208 prefs->RegisterStringPref(prefs::kOAuth1Token, | 204 prefs->RegisterStringPref(prefs::kOAuth1Token, |
209 "", | 205 "", |
210 PrefService::UNSYNCABLE_PREF); | 206 PrefService::UNSYNCABLE_PREF); |
211 prefs->RegisterStringPref(prefs::kOAuth1Secret, | 207 prefs->RegisterStringPref(prefs::kOAuth1Secret, |
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
602 | 598 |
603 // Remove invalid prefs. | 599 // Remove invalid prefs. |
604 DictionaryPrefUpdate updater(prefs, prefs::kLanguagePreferredVirtualKeyboard); | 600 DictionaryPrefUpdate updater(prefs, prefs::kLanguagePreferredVirtualKeyboard); |
605 DictionaryValue* pref_value = updater.Get(); | 601 DictionaryValue* pref_value = updater.Get(); |
606 for (size_t i = 0; i < layouts_to_remove.size(); ++i) { | 602 for (size_t i = 0; i < layouts_to_remove.size(); ++i) { |
607 pref_value->RemoveWithoutPathExpansion(layouts_to_remove[i], NULL); | 603 pref_value->RemoveWithoutPathExpansion(layouts_to_remove[i], NULL); |
608 } | 604 } |
609 } | 605 } |
610 | 606 |
611 } // namespace chromeos | 607 } // namespace chromeos |
OLD | NEW |