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

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

Issue 2557363002: [NTP Snippets] Refactor background scheduling for remote suggestions (Closed)
Patch Set: Fixing the last changes :) Created 3 years, 12 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/ntp_snippets/ios_chrome_content_suggestions_service_factory.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/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/metrics/metrics_pref_names.h" 13 #include "components/metrics/metrics_pref_names.h"
14 #include "components/network_time/network_time_tracker.h" 14 #include "components/network_time/network_time_tracker.h"
15 #include "components/ntp_snippets/bookmarks/bookmark_suggestions_provider.h" 15 #include "components/ntp_snippets/bookmarks/bookmark_suggestions_provider.h"
16 #include "components/ntp_snippets/content_suggestions_service.h" 16 #include "components/ntp_snippets/content_suggestions_service.h"
17 #include "components/ntp_snippets/remote/remote_suggestions_provider.h" 17 #include "components/ntp_snippets/remote/remote_suggestions_provider_impl.h"
18 #include "components/ntp_snippets/remote/scheduling_remote_suggestions_provider. h"
18 #include "components/ntp_tiles/most_visited_sites.h" 19 #include "components/ntp_tiles/most_visited_sites.h"
19 #include "components/ntp_tiles/popular_sites_impl.h" 20 #include "components/ntp_tiles/popular_sites_impl.h"
20 #include "components/omnibox/browser/zero_suggest_provider.h" 21 #include "components/omnibox/browser/zero_suggest_provider.h"
21 #include "components/password_manager/core/browser/password_manager.h" 22 #include "components/password_manager/core/browser/password_manager.h"
22 #include "components/pref_registry/pref_registry_syncable.h" 23 #include "components/pref_registry/pref_registry_syncable.h"
23 #include "components/prefs/pref_service.h" 24 #include "components/prefs/pref_service.h"
24 #include "components/proxy_config/pref_proxy_config_tracker_impl.h" 25 #include "components/proxy_config/pref_proxy_config_tracker_impl.h"
25 #include "components/rappor/rappor_service_impl.h" 26 #include "components/rappor/rappor_service_impl.h"
26 #include "components/search_engines/template_url_prepopulate_data.h" 27 #include "components/search_engines/template_url_prepopulate_data.h"
27 #include "components/signin/core/common/signin_pref_names.h" 28 #include "components/signin/core/common/signin_pref_names.h"
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 } 84 }
84 85
85 void RegisterBrowserStatePrefs(user_prefs::PrefRegistrySyncable* registry) { 86 void RegisterBrowserStatePrefs(user_prefs::PrefRegistrySyncable* registry) {
86 autofill::AutofillManager::RegisterProfilePrefs(registry); 87 autofill::AutofillManager::RegisterProfilePrefs(registry);
87 dom_distiller::DistilledPagePrefs::RegisterProfilePrefs(registry); 88 dom_distiller::DistilledPagePrefs::RegisterProfilePrefs(registry);
88 FirstRun::RegisterProfilePrefs(registry); 89 FirstRun::RegisterProfilePrefs(registry);
89 gcm::GCMChannelStatusSyncer::RegisterProfilePrefs(registry); 90 gcm::GCMChannelStatusSyncer::RegisterProfilePrefs(registry);
90 HostContentSettingsMap::RegisterProfilePrefs(registry); 91 HostContentSettingsMap::RegisterProfilePrefs(registry);
91 HttpServerPropertiesManagerFactory::RegisterProfilePrefs(registry); 92 HttpServerPropertiesManagerFactory::RegisterProfilePrefs(registry);
92 ntp_snippets::BookmarkSuggestionsProvider::RegisterProfilePrefs(registry); 93 ntp_snippets::BookmarkSuggestionsProvider::RegisterProfilePrefs(registry);
93 ntp_snippets::RemoteSuggestionsProvider::RegisterProfilePrefs(registry);
94 ntp_snippets::ContentSuggestionsService::RegisterProfilePrefs(registry); 94 ntp_snippets::ContentSuggestionsService::RegisterProfilePrefs(registry);
95 ntp_snippets::RemoteSuggestionsProviderImpl::RegisterProfilePrefs(registry);
96 ntp_snippets::SchedulingRemoteSuggestionsProvider::RegisterProfilePrefs(
97 registry);
95 ntp_tiles::MostVisitedSites::RegisterProfilePrefs(registry); 98 ntp_tiles::MostVisitedSites::RegisterProfilePrefs(registry);
96 ntp_tiles::PopularSitesImpl::RegisterProfilePrefs(registry); 99 ntp_tiles::PopularSitesImpl::RegisterProfilePrefs(registry);
97 ios::NotificationPromo::RegisterProfilePrefs(registry); 100 ios::NotificationPromo::RegisterProfilePrefs(registry);
98 password_manager::PasswordManager::RegisterProfilePrefs(registry); 101 password_manager::PasswordManager::RegisterProfilePrefs(registry);
99 PrefProxyConfigTrackerImpl::RegisterProfilePrefs(registry); 102 PrefProxyConfigTrackerImpl::RegisterProfilePrefs(registry);
100 syncer::SyncPrefs::RegisterProfilePrefs(registry); 103 syncer::SyncPrefs::RegisterProfilePrefs(registry);
101 TemplateURLPrepopulateData::RegisterProfilePrefs(registry); 104 TemplateURLPrepopulateData::RegisterProfilePrefs(registry);
102 translate::TranslatePrefs::RegisterProfilePrefs(registry); 105 translate::TranslatePrefs::RegisterProfilePrefs(registry);
103 variations::VariationsService::RegisterProfilePrefs(registry); 106 variations::VariationsService::RegisterProfilePrefs(registry);
104 ZeroSuggestProvider::RegisterProfilePrefs(registry); 107 ZeroSuggestProvider::RegisterProfilePrefs(registry);
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 } 150 }
148 151
149 // This method should be periodically pruned of year+ old migrations. 152 // This method should be periodically pruned of year+ old migrations.
150 void MigrateObsoleteBrowserStatePrefs(PrefService* prefs) { 153 void MigrateObsoleteBrowserStatePrefs(PrefService* prefs) {
151 // Added 07/2014. 154 // Added 07/2014.
152 translate::TranslatePrefs::MigrateUserPrefs(prefs, prefs::kAcceptLanguages); 155 translate::TranslatePrefs::MigrateUserPrefs(prefs, prefs::kAcceptLanguages);
153 156
154 // Added 08/2015. 157 // Added 08/2015.
155 prefs->ClearPref(::prefs::kSigninSharedAuthenticationUserId); 158 prefs->ClearPref(::prefs::kSigninSharedAuthenticationUserId);
156 } 159 }
OLDNEW
« no previous file with comments | « ios/chrome/browser/ntp_snippets/ios_chrome_content_suggestions_service_factory.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698