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

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

Issue 2650153002: Add prefs for ContentSuggestions on iOS (Closed)
Patch Set: Created 3 years, 11 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 | « no previous file | 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/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/bookmarks/bookmark_suggestions_provider.h" 16 #include "components/ntp_snippets/bookmarks/bookmark_suggestions_provider.h"
17 #include "components/ntp_snippets/category_rankers/click_based_category_ranker.h "
17 #include "components/ntp_snippets/content_suggestions_service.h" 18 #include "components/ntp_snippets/content_suggestions_service.h"
18 #include "components/ntp_snippets/remote/remote_suggestions_provider_impl.h" 19 #include "components/ntp_snippets/remote/remote_suggestions_provider_impl.h"
20 #include "components/ntp_snippets/remote/request_throttler.h"
19 #include "components/ntp_snippets/remote/scheduling_remote_suggestions_provider. h" 21 #include "components/ntp_snippets/remote/scheduling_remote_suggestions_provider. h"
22 #include "components/ntp_snippets/user_classifier.h"
20 #include "components/ntp_tiles/most_visited_sites.h" 23 #include "components/ntp_tiles/most_visited_sites.h"
21 #include "components/ntp_tiles/popular_sites_impl.h" 24 #include "components/ntp_tiles/popular_sites_impl.h"
22 #include "components/omnibox/browser/zero_suggest_provider.h" 25 #include "components/omnibox/browser/zero_suggest_provider.h"
23 #include "components/password_manager/core/browser/password_manager.h" 26 #include "components/password_manager/core/browser/password_manager.h"
24 #include "components/pref_registry/pref_registry_syncable.h" 27 #include "components/pref_registry/pref_registry_syncable.h"
25 #include "components/prefs/pref_service.h" 28 #include "components/prefs/pref_service.h"
26 #include "components/proxy_config/pref_proxy_config_tracker_impl.h" 29 #include "components/proxy_config/pref_proxy_config_tracker_impl.h"
27 #include "components/rappor/rappor_service_impl.h" 30 #include "components/rappor/rappor_service_impl.h"
28 #include "components/search_engines/template_url_prepopulate_data.h" 31 #include "components/search_engines/template_url_prepopulate_data.h"
29 #include "components/signin/core/common/signin_pref_names.h" 32 #include "components/signin/core/common/signin_pref_names.h"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 } 90 }
88 91
89 void RegisterBrowserStatePrefs(user_prefs::PrefRegistrySyncable* registry) { 92 void RegisterBrowserStatePrefs(user_prefs::PrefRegistrySyncable* registry) {
90 autofill::AutofillManager::RegisterProfilePrefs(registry); 93 autofill::AutofillManager::RegisterProfilePrefs(registry);
91 dom_distiller::DistilledPagePrefs::RegisterProfilePrefs(registry); 94 dom_distiller::DistilledPagePrefs::RegisterProfilePrefs(registry);
92 FirstRun::RegisterProfilePrefs(registry); 95 FirstRun::RegisterProfilePrefs(registry);
93 gcm::GCMChannelStatusSyncer::RegisterProfilePrefs(registry); 96 gcm::GCMChannelStatusSyncer::RegisterProfilePrefs(registry);
94 HostContentSettingsMap::RegisterProfilePrefs(registry); 97 HostContentSettingsMap::RegisterProfilePrefs(registry);
95 HttpServerPropertiesManagerFactory::RegisterProfilePrefs(registry); 98 HttpServerPropertiesManagerFactory::RegisterProfilePrefs(registry);
96 ntp_snippets::BookmarkSuggestionsProvider::RegisterProfilePrefs(registry); 99 ntp_snippets::BookmarkSuggestionsProvider::RegisterProfilePrefs(registry);
100 ntp_snippets::ClickBasedCategoryRanker::RegisterProfilePrefs(registry);
97 ntp_snippets::ContentSuggestionsService::RegisterProfilePrefs(registry); 101 ntp_snippets::ContentSuggestionsService::RegisterProfilePrefs(registry);
98 ntp_snippets::RemoteSuggestionsProviderImpl::RegisterProfilePrefs(registry); 102 ntp_snippets::RemoteSuggestionsProviderImpl::RegisterProfilePrefs(registry);
103 ntp_snippets::RequestThrottler::RegisterProfilePrefs(registry);
99 ntp_snippets::SchedulingRemoteSuggestionsProvider::RegisterProfilePrefs( 104 ntp_snippets::SchedulingRemoteSuggestionsProvider::RegisterProfilePrefs(
100 registry); 105 registry);
106 ntp_snippets::UserClassifier::RegisterProfilePrefs(registry);
101 ntp_tiles::MostVisitedSites::RegisterProfilePrefs(registry); 107 ntp_tiles::MostVisitedSites::RegisterProfilePrefs(registry);
102 ntp_tiles::PopularSitesImpl::RegisterProfilePrefs(registry); 108 ntp_tiles::PopularSitesImpl::RegisterProfilePrefs(registry);
103 ios::NotificationPromo::RegisterProfilePrefs(registry); 109 ios::NotificationPromo::RegisterProfilePrefs(registry);
104 password_manager::PasswordManager::RegisterProfilePrefs(registry); 110 password_manager::PasswordManager::RegisterProfilePrefs(registry);
105 PrefProxyConfigTrackerImpl::RegisterProfilePrefs(registry); 111 PrefProxyConfigTrackerImpl::RegisterProfilePrefs(registry);
106 syncer::SyncPrefs::RegisterProfilePrefs(registry); 112 syncer::SyncPrefs::RegisterProfilePrefs(registry);
107 TemplateURLPrepopulateData::RegisterProfilePrefs(registry); 113 TemplateURLPrepopulateData::RegisterProfilePrefs(registry);
108 translate::TranslatePrefs::RegisterProfilePrefs(registry); 114 translate::TranslatePrefs::RegisterProfilePrefs(registry);
109 variations::VariationsService::RegisterProfilePrefs(registry); 115 variations::VariationsService::RegisterProfilePrefs(registry);
110 ZeroSuggestProvider::RegisterProfilePrefs(registry); 116 ZeroSuggestProvider::RegisterProfilePrefs(registry);
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 } 161 }
156 162
157 // This method should be periodically pruned of year+ old migrations. 163 // This method should be periodically pruned of year+ old migrations.
158 void MigrateObsoleteBrowserStatePrefs(PrefService* prefs) { 164 void MigrateObsoleteBrowserStatePrefs(PrefService* prefs) {
159 // Added 07/2014. 165 // Added 07/2014.
160 translate::TranslatePrefs::MigrateUserPrefs(prefs, prefs::kAcceptLanguages); 166 translate::TranslatePrefs::MigrateUserPrefs(prefs, prefs::kAcceptLanguages);
161 167
162 // Added 08/2015. 168 // Added 08/2015.
163 prefs->ClearPref(::prefs::kSigninSharedAuthenticationUserId); 169 prefs->ClearPref(::prefs::kSigninSharedAuthenticationUserId);
164 } 170 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698