| 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" |
| 11 #include "components/flags_ui/pref_service_flags_storage.h" | 11 #include "components/flags_ui/pref_service_flags_storage.h" |
| 12 #include "components/gcm_driver/gcm_channel_status_syncer.h" | 12 #include "components/gcm_driver/gcm_channel_status_syncer.h" |
| 13 #import "components/handoff/handoff_manager.h" | 13 #import "components/handoff/handoff_manager.h" |
| 14 #include "components/metrics/metrics_pref_names.h" | 14 #include "components/metrics/metrics_pref_names.h" |
| 15 #include "components/network_time/network_time_tracker.h" | 15 #include "components/network_time/network_time_tracker.h" |
| 16 #include "components/ntp_snippets/category_rankers/click_based_category_ranker.h
" | 16 #include "components/ntp_snippets/category_rankers/click_based_category_ranker.h
" |
| 17 #include "components/ntp_snippets/content_suggestions_service.h" | 17 #include "components/ntp_snippets/content_suggestions_service.h" |
| 18 #include "components/ntp_snippets/remote/remote_suggestions_provider_impl.h" | 18 #include "components/ntp_snippets/remote/remote_suggestions_provider_impl.h" |
| 19 #include "components/ntp_snippets/remote/remote_suggestions_scheduler_impl.h" | 19 #include "components/ntp_snippets/remote/remote_suggestions_scheduler_impl.h" |
| 20 #include "components/ntp_snippets/remote/request_throttler.h" | 20 #include "components/ntp_snippets/remote/request_throttler.h" |
| 21 #include "components/ntp_snippets/user_classifier.h" | 21 #include "components/ntp_snippets/user_classifier.h" |
| 22 #include "components/ntp_tiles/most_visited_sites.h" | 22 #include "components/ntp_tiles/most_visited_sites.h" |
| 23 #include "components/ntp_tiles/popular_sites_impl.h" | 23 #include "components/ntp_tiles/popular_sites_impl.h" |
| 24 #include "components/omnibox/browser/zero_suggest_provider.h" | 24 #include "components/omnibox/browser/zero_suggest_provider.h" |
| 25 #include "components/password_manager/core/browser/password_manager.h" | 25 #include "components/password_manager/core/browser/password_manager.h" |
| 26 #include "components/payments/core/payment_prefs.h" |
| 26 #include "components/pref_registry/pref_registry_syncable.h" | 27 #include "components/pref_registry/pref_registry_syncable.h" |
| 27 #include "components/prefs/pref_service.h" | 28 #include "components/prefs/pref_service.h" |
| 28 #include "components/proxy_config/pref_proxy_config_tracker_impl.h" | 29 #include "components/proxy_config/pref_proxy_config_tracker_impl.h" |
| 29 #include "components/rappor/rappor_service_impl.h" | 30 #include "components/rappor/rappor_service_impl.h" |
| 30 #include "components/search_engines/template_url_prepopulate_data.h" | 31 #include "components/search_engines/template_url_prepopulate_data.h" |
| 31 #include "components/signin/core/common/signin_pref_names.h" | 32 #include "components/signin/core/common/signin_pref_names.h" |
| 32 #include "components/ssl_config/ssl_config_service_manager.h" | 33 #include "components/ssl_config/ssl_config_service_manager.h" |
| 33 #include "components/strings/grit/components_locale_settings.h" | 34 #include "components/strings/grit/components_locale_settings.h" |
| 34 #include "components/sync/base/sync_prefs.h" | 35 #include "components/sync/base/sync_prefs.h" |
| 35 #include "components/translate/core/browser/language_model.h" | 36 #include "components/translate/core/browser/language_model.h" |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 ntp_snippets::ClickBasedCategoryRanker::RegisterProfilePrefs(registry); | 106 ntp_snippets::ClickBasedCategoryRanker::RegisterProfilePrefs(registry); |
| 106 ntp_snippets::ContentSuggestionsService::RegisterProfilePrefs(registry); | 107 ntp_snippets::ContentSuggestionsService::RegisterProfilePrefs(registry); |
| 107 ntp_snippets::RemoteSuggestionsProviderImpl::RegisterProfilePrefs(registry); | 108 ntp_snippets::RemoteSuggestionsProviderImpl::RegisterProfilePrefs(registry); |
| 108 ntp_snippets::RemoteSuggestionsSchedulerImpl::RegisterProfilePrefs(registry); | 109 ntp_snippets::RemoteSuggestionsSchedulerImpl::RegisterProfilePrefs(registry); |
| 109 ntp_snippets::RequestThrottler::RegisterProfilePrefs(registry); | 110 ntp_snippets::RequestThrottler::RegisterProfilePrefs(registry); |
| 110 ntp_snippets::UserClassifier::RegisterProfilePrefs(registry); | 111 ntp_snippets::UserClassifier::RegisterProfilePrefs(registry); |
| 111 ntp_tiles::MostVisitedSites::RegisterProfilePrefs(registry); | 112 ntp_tiles::MostVisitedSites::RegisterProfilePrefs(registry); |
| 112 ntp_tiles::PopularSitesImpl::RegisterProfilePrefs(registry); | 113 ntp_tiles::PopularSitesImpl::RegisterProfilePrefs(registry); |
| 113 ios::NotificationPromo::RegisterProfilePrefs(registry); | 114 ios::NotificationPromo::RegisterProfilePrefs(registry); |
| 114 password_manager::PasswordManager::RegisterProfilePrefs(registry); | 115 password_manager::PasswordManager::RegisterProfilePrefs(registry); |
| 116 payments::RegisterProfilePrefs(registry); |
| 115 PrefProxyConfigTrackerImpl::RegisterProfilePrefs(registry); | 117 PrefProxyConfigTrackerImpl::RegisterProfilePrefs(registry); |
| 116 syncer::SyncPrefs::RegisterProfilePrefs(registry); | 118 syncer::SyncPrefs::RegisterProfilePrefs(registry); |
| 117 TemplateURLPrepopulateData::RegisterProfilePrefs(registry); | 119 TemplateURLPrepopulateData::RegisterProfilePrefs(registry); |
| 118 translate::LanguageModel::RegisterProfilePrefs(registry); | 120 translate::LanguageModel::RegisterProfilePrefs(registry); |
| 119 translate::TranslatePrefs::RegisterProfilePrefs(registry); | 121 translate::TranslatePrefs::RegisterProfilePrefs(registry); |
| 120 variations::VariationsService::RegisterProfilePrefs(registry); | 122 variations::VariationsService::RegisterProfilePrefs(registry); |
| 121 ZeroSuggestProvider::RegisterProfilePrefs(registry); | 123 ZeroSuggestProvider::RegisterProfilePrefs(registry); |
| 122 DesktopPromotionSyncService::RegisterDesktopPromotionUserPrefs(registry); | 124 DesktopPromotionSyncService::RegisterDesktopPromotionUserPrefs(registry); |
| 123 RegisterVoiceSearchBrowserStatePrefs(registry); | 125 RegisterVoiceSearchBrowserStatePrefs(registry); |
| 124 | 126 |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 } | 172 } |
| 171 | 173 |
| 172 // This method should be periodically pruned of year+ old migrations. | 174 // This method should be periodically pruned of year+ old migrations. |
| 173 void MigrateObsoleteBrowserStatePrefs(PrefService* prefs) { | 175 void MigrateObsoleteBrowserStatePrefs(PrefService* prefs) { |
| 174 // Added 07/2014. | 176 // Added 07/2014. |
| 175 translate::TranslatePrefs::MigrateUserPrefs(prefs, prefs::kAcceptLanguages); | 177 translate::TranslatePrefs::MigrateUserPrefs(prefs, prefs::kAcceptLanguages); |
| 176 | 178 |
| 177 // Added 08/2015. | 179 // Added 08/2015. |
| 178 prefs->ClearPref(::prefs::kSigninSharedAuthenticationUserId); | 180 prefs->ClearPref(::prefs::kSigninSharedAuthenticationUserId); |
| 179 } | 181 } |
| OLD | NEW |