| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "ios/chrome/browser/prefs/browser_prefs.h" | 5 #include "ios/chrome/browser/prefs/browser_prefs.h" |
| 6 | 6 |
| 7 #include "components/autofill/core/browser/autofill_manager.h" | 7 #include "components/autofill/core/browser/autofill_manager.h" |
| 8 #include "components/browsing_data/core/pref_names.h" | 8 #include "components/browsing_data/core/pref_names.h" |
| 9 #include "components/content_settings/core/browser/host_content_settings_map.h" | 9 #include "components/content_settings/core/browser/host_content_settings_map.h" |
| 10 #include "components/dom_distiller/core/distilled_page_prefs.h" | 10 #include "components/dom_distiller/core/distilled_page_prefs.h" |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 translate::TranslatePrefs::RegisterProfilePrefs(registry); | 119 translate::TranslatePrefs::RegisterProfilePrefs(registry); |
| 120 variations::VariationsService::RegisterProfilePrefs(registry); | 120 variations::VariationsService::RegisterProfilePrefs(registry); |
| 121 ZeroSuggestProvider::RegisterProfilePrefs(registry); | 121 ZeroSuggestProvider::RegisterProfilePrefs(registry); |
| 122 DesktopPromotionSyncService::RegisterDesktopPromotionUserPrefs(registry); | 122 DesktopPromotionSyncService::RegisterDesktopPromotionUserPrefs(registry); |
| 123 RegisterVoiceSearchBrowserStatePrefs(registry); | 123 RegisterVoiceSearchBrowserStatePrefs(registry); |
| 124 | 124 |
| 125 [BookmarkCollectionView registerBrowserStatePrefs:registry]; | 125 [BookmarkCollectionView registerBrowserStatePrefs:registry]; |
| 126 [BookmarkInteractionController registerBrowserStatePrefs:registry]; | 126 [BookmarkInteractionController registerBrowserStatePrefs:registry]; |
| 127 [BookmarkPromoController registerBrowserStatePrefs:registry]; | 127 [BookmarkPromoController registerBrowserStatePrefs:registry]; |
| 128 [HandoffManager registerBrowserStatePrefs:registry]; | 128 [HandoffManager registerBrowserStatePrefs:registry]; |
| 129 registry->RegisterIntegerPref(prefs::kIosSettingsSigninPromoDisplayedCount, |
| 130 0); |
| 129 | 131 |
| 130 registry->RegisterBooleanPref(prefs::kDataSaverEnabled, false); | 132 registry->RegisterBooleanPref(prefs::kDataSaverEnabled, false); |
| 131 registry->RegisterBooleanPref( | 133 registry->RegisterBooleanPref( |
| 132 prefs::kEnableDoNotTrack, false, | 134 prefs::kEnableDoNotTrack, false, |
| 133 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); | 135 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); |
| 134 registry->RegisterBooleanPref( | 136 registry->RegisterBooleanPref( |
| 135 prefs::kEnableTranslate, true, | 137 prefs::kEnableTranslate, true, |
| 136 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); | 138 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); |
| 137 registry->RegisterStringPref(prefs::kAcceptLanguages, | 139 registry->RegisterStringPref(prefs::kAcceptLanguages, |
| 138 l10n_util::GetStringUTF8(IDS_ACCEPT_LANGUAGES)); | 140 l10n_util::GetStringUTF8(IDS_ACCEPT_LANGUAGES)); |
| (...skipping 29 matching lines...) Expand all Loading... |
| 168 } | 170 } |
| 169 | 171 |
| 170 // This method should be periodically pruned of year+ old migrations. | 172 // This method should be periodically pruned of year+ old migrations. |
| 171 void MigrateObsoleteBrowserStatePrefs(PrefService* prefs) { | 173 void MigrateObsoleteBrowserStatePrefs(PrefService* prefs) { |
| 172 // Added 07/2014. | 174 // Added 07/2014. |
| 173 translate::TranslatePrefs::MigrateUserPrefs(prefs, prefs::kAcceptLanguages); | 175 translate::TranslatePrefs::MigrateUserPrefs(prefs, prefs::kAcceptLanguages); |
| 174 | 176 |
| 175 // Added 08/2015. | 177 // Added 08/2015. |
| 176 prefs->ClearPref(::prefs::kSigninSharedAuthenticationUserId); | 178 prefs->ClearPref(::prefs::kSigninSharedAuthenticationUserId); |
| 177 } | 179 } |
| OLD | NEW |