| 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 21 matching lines...) Expand all Loading... |
| 32 #include "components/signin/core/common/signin_pref_names.h" | 32 #include "components/signin/core/common/signin_pref_names.h" |
| 33 #include "components/ssl_config/ssl_config_service_manager.h" | 33 #include "components/ssl_config/ssl_config_service_manager.h" |
| 34 #include "components/strings/grit/components_locale_settings.h" | 34 #include "components/strings/grit/components_locale_settings.h" |
| 35 #include "components/sync/base/sync_prefs.h" | 35 #include "components/sync/base/sync_prefs.h" |
| 36 #include "components/translate/core/browser/translate_prefs.h" | 36 #include "components/translate/core/browser/translate_prefs.h" |
| 37 #include "components/translate/core/common/translate_pref_names.h" | 37 #include "components/translate/core/common/translate_pref_names.h" |
| 38 #include "components/update_client/update_client.h" | 38 #include "components/update_client/update_client.h" |
| 39 #include "components/variations/service/variations_service.h" | 39 #include "components/variations/service/variations_service.h" |
| 40 #include "components/web_resource/web_resource_pref_names.h" | 40 #include "components/web_resource/web_resource_pref_names.h" |
| 41 #include "ios/chrome/browser/browser_state/browser_state_info_cache.h" | 41 #include "ios/chrome/browser/browser_state/browser_state_info_cache.h" |
| 42 #include "ios/chrome/browser/desktop_promotion/desktop_promotion_sync_service.h" |
| 42 #include "ios/chrome/browser/first_run/first_run.h" | 43 #include "ios/chrome/browser/first_run/first_run.h" |
| 43 #import "ios/chrome/browser/geolocation/omnibox_geolocation_local_state.h" | 44 #import "ios/chrome/browser/geolocation/omnibox_geolocation_local_state.h" |
| 44 #import "ios/chrome/browser/memory/memory_debugger_manager.h" | 45 #import "ios/chrome/browser/memory/memory_debugger_manager.h" |
| 45 #import "ios/chrome/browser/metrics/ios_chrome_metrics_service_client.h" | 46 #import "ios/chrome/browser/metrics/ios_chrome_metrics_service_client.h" |
| 46 #include "ios/chrome/browser/net/http_server_properties_manager_factory.h" | 47 #include "ios/chrome/browser/net/http_server_properties_manager_factory.h" |
| 47 #include "ios/chrome/browser/notification_promo.h" | 48 #include "ios/chrome/browser/notification_promo.h" |
| 48 #include "ios/chrome/browser/physical_web/physical_web_prefs_registration.h" | 49 #include "ios/chrome/browser/physical_web/physical_web_prefs_registration.h" |
| 49 #include "ios/chrome/browser/pref_names.h" | 50 #include "ios/chrome/browser/pref_names.h" |
| 50 #include "ios/chrome/browser/signin/signin_manager_factory.h" | 51 #include "ios/chrome/browser/signin/signin_manager_factory.h" |
| 51 #import "ios/chrome/browser/ui/bookmarks/bookmark_interaction_controller.h" | 52 #import "ios/chrome/browser/ui/bookmarks/bookmark_interaction_controller.h" |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 ntp_tiles::MostVisitedSites::RegisterProfilePrefs(registry); | 108 ntp_tiles::MostVisitedSites::RegisterProfilePrefs(registry); |
| 108 ntp_tiles::PopularSitesImpl::RegisterProfilePrefs(registry); | 109 ntp_tiles::PopularSitesImpl::RegisterProfilePrefs(registry); |
| 109 ios::NotificationPromo::RegisterProfilePrefs(registry); | 110 ios::NotificationPromo::RegisterProfilePrefs(registry); |
| 110 password_manager::PasswordManager::RegisterProfilePrefs(registry); | 111 password_manager::PasswordManager::RegisterProfilePrefs(registry); |
| 111 PrefProxyConfigTrackerImpl::RegisterProfilePrefs(registry); | 112 PrefProxyConfigTrackerImpl::RegisterProfilePrefs(registry); |
| 112 syncer::SyncPrefs::RegisterProfilePrefs(registry); | 113 syncer::SyncPrefs::RegisterProfilePrefs(registry); |
| 113 TemplateURLPrepopulateData::RegisterProfilePrefs(registry); | 114 TemplateURLPrepopulateData::RegisterProfilePrefs(registry); |
| 114 translate::TranslatePrefs::RegisterProfilePrefs(registry); | 115 translate::TranslatePrefs::RegisterProfilePrefs(registry); |
| 115 variations::VariationsService::RegisterProfilePrefs(registry); | 116 variations::VariationsService::RegisterProfilePrefs(registry); |
| 116 ZeroSuggestProvider::RegisterProfilePrefs(registry); | 117 ZeroSuggestProvider::RegisterProfilePrefs(registry); |
| 118 DesktopPromotionSyncService::RegisterDesktopPromotionUserPrefs(registry); |
| 117 RegisterVoiceSearchBrowserStatePrefs(registry); | 119 RegisterVoiceSearchBrowserStatePrefs(registry); |
| 118 | 120 |
| 119 [BookmarkInteractionController registerBrowserStatePrefs:registry]; | 121 [BookmarkInteractionController registerBrowserStatePrefs:registry]; |
| 120 [BookmarkPromoController registerBrowserStatePrefs:registry]; | 122 [BookmarkPromoController registerBrowserStatePrefs:registry]; |
| 121 [HandoffManager registerBrowserStatePrefs:registry]; | 123 [HandoffManager registerBrowserStatePrefs:registry]; |
| 122 | 124 |
| 123 registry->RegisterBooleanPref(prefs::kDataSaverEnabled, false); | 125 registry->RegisterBooleanPref(prefs::kDataSaverEnabled, false); |
| 124 registry->RegisterBooleanPref( | 126 registry->RegisterBooleanPref( |
| 125 prefs::kEnableDoNotTrack, false, | 127 prefs::kEnableDoNotTrack, false, |
| 126 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); | 128 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 } | 163 } |
| 162 | 164 |
| 163 // This method should be periodically pruned of year+ old migrations. | 165 // This method should be periodically pruned of year+ old migrations. |
| 164 void MigrateObsoleteBrowserStatePrefs(PrefService* prefs) { | 166 void MigrateObsoleteBrowserStatePrefs(PrefService* prefs) { |
| 165 // Added 07/2014. | 167 // Added 07/2014. |
| 166 translate::TranslatePrefs::MigrateUserPrefs(prefs, prefs::kAcceptLanguages); | 168 translate::TranslatePrefs::MigrateUserPrefs(prefs, prefs::kAcceptLanguages); |
| 167 | 169 |
| 168 // Added 08/2015. | 170 // Added 08/2015. |
| 169 prefs->ClearPref(::prefs::kSigninSharedAuthenticationUserId); | 171 prefs->ClearPref(::prefs::kSigninSharedAuthenticationUserId); |
| 170 } | 172 } |
| OLD | NEW |