| 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 #include "components/network_time/network_time_tracker.h" | 13 #include "components/network_time/network_time_tracker.h" |
| 14 #include "components/ntp_snippets/ntp_snippets_service.h" | 14 #include "components/ntp_snippets/ntp_snippets_service.h" |
| 15 #include "components/ntp_tiles/most_visited_sites.h" |
| 16 #include "components/ntp_tiles/popular_sites.h" |
| 15 #include "components/omnibox/browser/zero_suggest_provider.h" | 17 #include "components/omnibox/browser/zero_suggest_provider.h" |
| 16 #include "components/password_manager/core/browser/password_manager.h" | 18 #include "components/password_manager/core/browser/password_manager.h" |
| 17 #include "components/pref_registry/pref_registry_syncable.h" | 19 #include "components/pref_registry/pref_registry_syncable.h" |
| 18 #include "components/prefs/pref_service.h" | 20 #include "components/prefs/pref_service.h" |
| 19 #include "components/proxy_config/pref_proxy_config_tracker_impl.h" | 21 #include "components/proxy_config/pref_proxy_config_tracker_impl.h" |
| 20 #include "components/rappor/rappor_service.h" | 22 #include "components/rappor/rappor_service.h" |
| 21 #include "components/search_engines/template_url_prepopulate_data.h" | 23 #include "components/search_engines/template_url_prepopulate_data.h" |
| 22 #include "components/signin/core/common/signin_pref_names.h" | 24 #include "components/signin/core/common/signin_pref_names.h" |
| 23 #include "components/ssl_config/ssl_config_service_manager.h" | 25 #include "components/ssl_config/ssl_config_service_manager.h" |
| 24 #include "components/strings/grit/components_locale_settings.h" | 26 #include "components/strings/grit/components_locale_settings.h" |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 } | 83 } |
| 82 | 84 |
| 83 void RegisterBrowserStatePrefs(user_prefs::PrefRegistrySyncable* registry) { | 85 void RegisterBrowserStatePrefs(user_prefs::PrefRegistrySyncable* registry) { |
| 84 autofill::AutofillManager::RegisterProfilePrefs(registry); | 86 autofill::AutofillManager::RegisterProfilePrefs(registry); |
| 85 dom_distiller::DistilledPagePrefs::RegisterProfilePrefs(registry); | 87 dom_distiller::DistilledPagePrefs::RegisterProfilePrefs(registry); |
| 86 FirstRun::RegisterProfilePrefs(registry); | 88 FirstRun::RegisterProfilePrefs(registry); |
| 87 gcm::GCMChannelStatusSyncer::RegisterProfilePrefs(registry); | 89 gcm::GCMChannelStatusSyncer::RegisterProfilePrefs(registry); |
| 88 HostContentSettingsMap::RegisterProfilePrefs(registry); | 90 HostContentSettingsMap::RegisterProfilePrefs(registry); |
| 89 HttpServerPropertiesManagerFactory::RegisterProfilePrefs(registry); | 91 HttpServerPropertiesManagerFactory::RegisterProfilePrefs(registry); |
| 90 ntp_snippets::NTPSnippetsService::RegisterProfilePrefs(registry); | 92 ntp_snippets::NTPSnippetsService::RegisterProfilePrefs(registry); |
| 93 ntp_tiles::MostVisitedSites::RegisterProfilePrefs(registry); |
| 94 ntp_tiles::PopularSites::RegisterProfilePrefs(registry); |
| 91 ios::NotificationPromo::RegisterProfilePrefs(registry); | 95 ios::NotificationPromo::RegisterProfilePrefs(registry); |
| 92 password_manager::PasswordManager::RegisterProfilePrefs(registry); | 96 password_manager::PasswordManager::RegisterProfilePrefs(registry); |
| 93 PrefProxyConfigTrackerImpl::RegisterProfilePrefs(registry); | 97 PrefProxyConfigTrackerImpl::RegisterProfilePrefs(registry); |
| 94 sync_driver::SyncPrefs::RegisterProfilePrefs(registry); | 98 sync_driver::SyncPrefs::RegisterProfilePrefs(registry); |
| 95 TemplateURLPrepopulateData::RegisterProfilePrefs(registry); | 99 TemplateURLPrepopulateData::RegisterProfilePrefs(registry); |
| 96 translate::TranslatePrefs::RegisterProfilePrefs(registry); | 100 translate::TranslatePrefs::RegisterProfilePrefs(registry); |
| 97 variations::VariationsService::RegisterProfilePrefs(registry); | 101 variations::VariationsService::RegisterProfilePrefs(registry); |
| 98 ZeroSuggestProvider::RegisterProfilePrefs(registry); | 102 ZeroSuggestProvider::RegisterProfilePrefs(registry); |
| 99 | 103 |
| 100 registry->RegisterBooleanPref(prefs::kDataSaverEnabled, false); | 104 registry->RegisterBooleanPref(prefs::kDataSaverEnabled, false); |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 } | 157 } |
| 154 | 158 |
| 155 // This method should be periodically pruned of year+ old migrations. | 159 // This method should be periodically pruned of year+ old migrations. |
| 156 void MigrateObsoleteBrowserStatePrefs(PrefService* prefs) { | 160 void MigrateObsoleteBrowserStatePrefs(PrefService* prefs) { |
| 157 // Added 07/2014. | 161 // Added 07/2014. |
| 158 translate::TranslatePrefs::MigrateUserPrefs(prefs, prefs::kAcceptLanguages); | 162 translate::TranslatePrefs::MigrateUserPrefs(prefs, prefs::kAcceptLanguages); |
| 159 | 163 |
| 160 // Added 08/2015. | 164 // Added 08/2015. |
| 161 prefs->ClearPref(::prefs::kSigninSharedAuthenticationUserId); | 165 prefs->ClearPref(::prefs::kSigninSharedAuthenticationUserId); |
| 162 } | 166 } |
| OLD | NEW |