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

Side by Side Diff: chrome/browser/prefs/browser_prefs.cc

Issue 2774663002: [Remote suggestions] Refactor the scheduler (Closed)
Patch Set: Marc's nits #2 Created 3 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
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 "chrome/browser/prefs/browser_prefs.h" 5 #include "chrome/browser/prefs/browser_prefs.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/files/file_util.h" 9 #include "base/files/file_util.h"
10 #include "base/metrics/histogram_macros.h" 10 #include "base/metrics/histogram_macros.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 #include "components/content_settings/core/browser/host_content_settings_map.h" 75 #include "components/content_settings/core/browser/host_content_settings_map.h"
76 #include "components/dom_distiller/core/distilled_page_prefs.h" 76 #include "components/dom_distiller/core/distilled_page_prefs.h"
77 #include "components/doodle/doodle_service.h" 77 #include "components/doodle/doodle_service.h"
78 #include "components/flags_ui/pref_service_flags_storage.h" 78 #include "components/flags_ui/pref_service_flags_storage.h"
79 #include "components/gcm_driver/gcm_channel_status_syncer.h" 79 #include "components/gcm_driver/gcm_channel_status_syncer.h"
80 #include "components/metrics/metrics_service.h" 80 #include "components/metrics/metrics_service.h"
81 #include "components/network_time/network_time_tracker.h" 81 #include "components/network_time/network_time_tracker.h"
82 #include "components/ntp_snippets/bookmarks/bookmark_suggestions_provider.h" 82 #include "components/ntp_snippets/bookmarks/bookmark_suggestions_provider.h"
83 #include "components/ntp_snippets/content_suggestions_service.h" 83 #include "components/ntp_snippets/content_suggestions_service.h"
84 #include "components/ntp_snippets/remote/remote_suggestions_provider_impl.h" 84 #include "components/ntp_snippets/remote/remote_suggestions_provider_impl.h"
85 #include "components/ntp_snippets/remote/remote_suggestions_scheduler_impl.h"
85 #include "components/ntp_snippets/remote/request_throttler.h" 86 #include "components/ntp_snippets/remote/request_throttler.h"
86 #include "components/ntp_snippets/remote/scheduling_remote_suggestions_provider. h"
87 #include "components/ntp_snippets/sessions/foreign_sessions_suggestions_provider .h" 87 #include "components/ntp_snippets/sessions/foreign_sessions_suggestions_provider .h"
88 #include "components/ntp_snippets/user_classifier.h" 88 #include "components/ntp_snippets/user_classifier.h"
89 #include "components/ntp_tiles/most_visited_sites.h" 89 #include "components/ntp_tiles/most_visited_sites.h"
90 #include "components/omnibox/browser/zero_suggest_provider.h" 90 #include "components/omnibox/browser/zero_suggest_provider.h"
91 #include "components/password_manager/core/browser/password_bubble_experiment.h" 91 #include "components/password_manager/core/browser/password_bubble_experiment.h"
92 #include "components/password_manager/core/browser/password_manager.h" 92 #include "components/password_manager/core/browser/password_manager.h"
93 #include "components/policy/core/browser/browser_policy_connector.h" 93 #include "components/policy/core/browser/browser_policy_connector.h"
94 #include "components/policy/core/browser/url_blacklist_manager.h" 94 #include "components/policy/core/browser/url_blacklist_manager.h"
95 #include "components/policy/core/common/policy_statistics_collector.h" 95 #include "components/policy/core/common/policy_statistics_collector.h"
96 #include "components/pref_registry/pref_registry_syncable.h" 96 #include "components/pref_registry/pref_registry_syncable.h"
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
482 MediaCaptureDevicesDispatcher::RegisterProfilePrefs(registry); 482 MediaCaptureDevicesDispatcher::RegisterProfilePrefs(registry);
483 MediaDeviceIDSalt::RegisterProfilePrefs(registry); 483 MediaDeviceIDSalt::RegisterProfilePrefs(registry);
484 MediaStreamDevicesController::RegisterProfilePrefs(registry); 484 MediaStreamDevicesController::RegisterProfilePrefs(registry);
485 NetHttpSessionParamsObserver::RegisterProfilePrefs(registry); 485 NetHttpSessionParamsObserver::RegisterProfilePrefs(registry);
486 NotifierStateTracker::RegisterProfilePrefs(registry); 486 NotifierStateTracker::RegisterProfilePrefs(registry);
487 ntp_snippets::BookmarkSuggestionsProvider::RegisterProfilePrefs(registry); 487 ntp_snippets::BookmarkSuggestionsProvider::RegisterProfilePrefs(registry);
488 ntp_snippets::ContentSuggestionsService::RegisterProfilePrefs(registry); 488 ntp_snippets::ContentSuggestionsService::RegisterProfilePrefs(registry);
489 ntp_snippets::ForeignSessionsSuggestionsProvider::RegisterProfilePrefs( 489 ntp_snippets::ForeignSessionsSuggestionsProvider::RegisterProfilePrefs(
490 registry); 490 registry);
491 ntp_snippets::RemoteSuggestionsProviderImpl::RegisterProfilePrefs(registry); 491 ntp_snippets::RemoteSuggestionsProviderImpl::RegisterProfilePrefs(registry);
492 ntp_snippets::RemoteSuggestionsSchedulerImpl::RegisterProfilePrefs(registry);
492 ntp_snippets::RequestThrottler::RegisterProfilePrefs(registry); 493 ntp_snippets::RequestThrottler::RegisterProfilePrefs(registry);
493 ntp_snippets::SchedulingRemoteSuggestionsProvider::RegisterProfilePrefs(
494 registry);
495 ntp_snippets::UserClassifier::RegisterProfilePrefs(registry); 494 ntp_snippets::UserClassifier::RegisterProfilePrefs(registry);
496 ntp_tiles::MostVisitedSites::RegisterProfilePrefs(registry); 495 ntp_tiles::MostVisitedSites::RegisterProfilePrefs(registry);
497 password_bubble_experiment::RegisterPrefs(registry); 496 password_bubble_experiment::RegisterPrefs(registry);
498 password_manager::PasswordManager::RegisterProfilePrefs(registry); 497 password_manager::PasswordManager::RegisterProfilePrefs(registry);
499 PrefProxyConfigTrackerImpl::RegisterProfilePrefs(registry); 498 PrefProxyConfigTrackerImpl::RegisterProfilePrefs(registry);
500 PrefsTabHelper::RegisterProfilePrefs(registry); 499 PrefsTabHelper::RegisterProfilePrefs(registry);
501 Profile::RegisterProfilePrefs(registry); 500 Profile::RegisterProfilePrefs(registry);
502 ProfileImpl::RegisterProfilePrefs(registry); 501 ProfileImpl::RegisterProfilePrefs(registry);
503 ProtocolHandlerRegistry::RegisterProfilePrefs(registry); 502 ProtocolHandlerRegistry::RegisterProfilePrefs(registry);
504 PushMessagingAppIdentifier::RegisterProfilePrefs(registry); 503 PushMessagingAppIdentifier::RegisterProfilePrefs(registry);
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
786 if (distro_dict && 785 if (distro_dict &&
787 distro_dict->GetInteger(kDistroRlzPingDelay, &rlz_ping_delay)) { 786 distro_dict->GetInteger(kDistroRlzPingDelay, &rlz_ping_delay)) {
788 profile_prefs->SetInteger(prefs::kRlzPingDelaySeconds, rlz_ping_delay); 787 profile_prefs->SetInteger(prefs::kRlzPingDelaySeconds, rlz_ping_delay);
789 } 788 }
790 #endif // BUILDFLAG(ENABLE_RLZ) 789 #endif // BUILDFLAG(ENABLE_RLZ)
791 profile_prefs->ClearPref(kDistroDict); 790 profile_prefs->ClearPref(kDistroDict);
792 } 791 }
793 } 792 }
794 793
795 } // namespace chrome 794 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/ntp_snippets/content_suggestions_service_factory.cc ('k') | components/ntp_snippets/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698