Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(476)

Side by Side Diff: ios/chrome/browser/prefs/browser_prefs.mm

Issue 1902443004: Implements CR deduplication for iOS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ios/chrome/browser/component_updater/ios_component_updater_configurator.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/content_settings/core/browser/host_content_settings_map.h" 8 #include "components/content_settings/core/browser/host_content_settings_map.h"
9 #include "components/dom_distiller/core/distilled_page_prefs.h" 9 #include "components/dom_distiller/core/distilled_page_prefs.h"
10 #include "components/flags_ui/pref_service_flags_storage.h" 10 #include "components/flags_ui/pref_service_flags_storage.h"
11 #include "components/gcm_driver/gcm_channel_status_syncer.h" 11 #include "components/gcm_driver/gcm_channel_status_syncer.h"
12 #include "components/network_time/network_time_tracker.h" 12 #include "components/network_time/network_time_tracker.h"
13 #include "components/ntp_snippets/ntp_snippets_service.h" 13 #include "components/ntp_snippets/ntp_snippets_service.h"
14 #include "components/omnibox/browser/zero_suggest_provider.h" 14 #include "components/omnibox/browser/zero_suggest_provider.h"
15 #include "components/password_manager/core/browser/password_manager.h" 15 #include "components/password_manager/core/browser/password_manager.h"
16 #include "components/pref_registry/pref_registry_syncable.h" 16 #include "components/pref_registry/pref_registry_syncable.h"
17 #include "components/prefs/pref_service.h" 17 #include "components/prefs/pref_service.h"
18 #include "components/proxy_config/pref_proxy_config_tracker_impl.h" 18 #include "components/proxy_config/pref_proxy_config_tracker_impl.h"
19 #include "components/rappor/rappor_service.h" 19 #include "components/rappor/rappor_service.h"
20 #include "components/search_engines/template_url_prepopulate_data.h" 20 #include "components/search_engines/template_url_prepopulate_data.h"
21 #include "components/signin/core/common/signin_pref_names.h" 21 #include "components/signin/core/common/signin_pref_names.h"
22 #include "components/ssl_config/ssl_config_service_manager.h" 22 #include "components/ssl_config/ssl_config_service_manager.h"
23 #include "components/strings/grit/components_locale_settings.h" 23 #include "components/strings/grit/components_locale_settings.h"
24 #include "components/sync_driver/sync_prefs.h" 24 #include "components/sync_driver/sync_prefs.h"
25 #include "components/translate/core/browser/translate_prefs.h" 25 #include "components/translate/core/browser/translate_prefs.h"
26 #include "components/translate/core/common/translate_pref_names.h" 26 #include "components/translate/core/common/translate_pref_names.h"
27 #include "components/update_client/update_client.h"
27 #include "components/variations/service/variations_service.h" 28 #include "components/variations/service/variations_service.h"
28 #include "components/web_resource/promo_resource_service.h" 29 #include "components/web_resource/promo_resource_service.h"
29 #include "ios/chrome/browser/application_context_impl.h" 30 #include "ios/chrome/browser/application_context_impl.h"
30 #include "ios/chrome/browser/browser_state/browser_state_info_cache.h" 31 #include "ios/chrome/browser/browser_state/browser_state_info_cache.h"
31 #include "ios/chrome/browser/first_run/first_run.h" 32 #include "ios/chrome/browser/first_run/first_run.h"
32 #import "ios/chrome/browser/geolocation/omnibox_geolocation_local_state.h" 33 #import "ios/chrome/browser/geolocation/omnibox_geolocation_local_state.h"
33 #import "ios/chrome/browser/memory/memory_debugger_manager.h" 34 #import "ios/chrome/browser/memory/memory_debugger_manager.h"
34 #import "ios/chrome/browser/metrics/ios_chrome_metrics_service_client.h" 35 #import "ios/chrome/browser/metrics/ios_chrome_metrics_service_client.h"
35 #include "ios/chrome/browser/net/http_server_properties_manager_factory.h" 36 #include "ios/chrome/browser/net/http_server_properties_manager_factory.h"
36 #include "ios/chrome/browser/pref_names.h" 37 #include "ios/chrome/browser/pref_names.h"
(...skipping 14 matching lines...) Expand all
51 void RegisterLocalStatePrefs(PrefRegistrySimple* registry) { 52 void RegisterLocalStatePrefs(PrefRegistrySimple* registry) {
52 BrowserStateInfoCache::RegisterPrefs(registry); 53 BrowserStateInfoCache::RegisterPrefs(registry);
53 flags_ui::PrefServiceFlagsStorage::RegisterPrefs(registry); 54 flags_ui::PrefServiceFlagsStorage::RegisterPrefs(registry);
54 gcm::GCMChannelStatusSyncer::RegisterPrefs(registry); 55 gcm::GCMChannelStatusSyncer::RegisterPrefs(registry);
55 ios::SigninManagerFactory::RegisterPrefs(registry); 56 ios::SigninManagerFactory::RegisterPrefs(registry);
56 IOSChromeMetricsServiceClient::RegisterPrefs(registry); 57 IOSChromeMetricsServiceClient::RegisterPrefs(registry);
57 network_time::NetworkTimeTracker::RegisterPrefs(registry); 58 network_time::NetworkTimeTracker::RegisterPrefs(registry);
58 PrefProxyConfigTrackerImpl::RegisterPrefs(registry); 59 PrefProxyConfigTrackerImpl::RegisterPrefs(registry);
59 rappor::RapporService::RegisterPrefs(registry); 60 rappor::RapporService::RegisterPrefs(registry);
60 ssl_config::SSLConfigServiceManager::RegisterPrefs(registry); 61 ssl_config::SSLConfigServiceManager::RegisterPrefs(registry);
62 update_client::RegisterPrefs(registry);
61 variations::VariationsService::RegisterPrefs(registry); 63 variations::VariationsService::RegisterPrefs(registry);
62 web_resource::PromoResourceService::RegisterPrefs(registry); 64 web_resource::PromoResourceService::RegisterPrefs(registry);
63 65
64 // Preferences related to the browser state manager. 66 // Preferences related to the browser state manager.
65 registry->RegisterStringPref(prefs::kBrowserStateLastUsed, std::string()); 67 registry->RegisterStringPref(prefs::kBrowserStateLastUsed, std::string());
66 registry->RegisterIntegerPref(prefs::kBrowserStatesNumCreated, 1); 68 registry->RegisterIntegerPref(prefs::kBrowserStatesNumCreated, 1);
67 registry->RegisterListPref(prefs::kBrowserStatesLastActive); 69 registry->RegisterListPref(prefs::kBrowserStatesLastActive);
68 70
69 [OmniboxGeolocationLocalState registerLocalState:registry]; 71 [OmniboxGeolocationLocalState registerLocalState:registry];
70 [MemoryDebuggerManager registerLocalState:registry]; 72 [MemoryDebuggerManager registerLocalState:registry];
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 void MigrateObsoleteLocalStatePrefs(PrefService* prefs) {} 144 void MigrateObsoleteLocalStatePrefs(PrefService* prefs) {}
143 145
144 // This method should be periodically pruned of year+ old migrations. 146 // This method should be periodically pruned of year+ old migrations.
145 void MigrateObsoleteBrowserStatePrefs(PrefService* prefs) { 147 void MigrateObsoleteBrowserStatePrefs(PrefService* prefs) {
146 // Added 07/2014. 148 // Added 07/2014.
147 translate::TranslatePrefs::MigrateUserPrefs(prefs, prefs::kAcceptLanguages); 149 translate::TranslatePrefs::MigrateUserPrefs(prefs, prefs::kAcceptLanguages);
148 150
149 // Added 08/2015. 151 // Added 08/2015.
150 prefs->ClearPref(::prefs::kSigninSharedAuthenticationUserId); 152 prefs->ClearPref(::prefs::kSigninSharedAuthenticationUserId);
151 } 153 }
OLDNEW
« no previous file with comments | « ios/chrome/browser/component_updater/ios_component_updater_configurator.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698