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

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

Issue 2557363002: [NTP Snippets] Refactor background scheduling for remote suggestions (Closed)
Patch Set: Fixing the last changes :) Created 4 years 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 #include "components/browsing_data/core/pref_names.h" 72 #include "components/browsing_data/core/pref_names.h"
73 #include "components/certificate_transparency/ct_policy_manager.h" 73 #include "components/certificate_transparency/ct_policy_manager.h"
74 #include "components/content_settings/core/browser/host_content_settings_map.h" 74 #include "components/content_settings/core/browser/host_content_settings_map.h"
75 #include "components/dom_distiller/core/distilled_page_prefs.h" 75 #include "components/dom_distiller/core/distilled_page_prefs.h"
76 #include "components/flags_ui/pref_service_flags_storage.h" 76 #include "components/flags_ui/pref_service_flags_storage.h"
77 #include "components/gcm_driver/gcm_channel_status_syncer.h" 77 #include "components/gcm_driver/gcm_channel_status_syncer.h"
78 #include "components/metrics/metrics_service.h" 78 #include "components/metrics/metrics_service.h"
79 #include "components/network_time/network_time_tracker.h" 79 #include "components/network_time/network_time_tracker.h"
80 #include "components/ntp_snippets/bookmarks/bookmark_suggestions_provider.h" 80 #include "components/ntp_snippets/bookmarks/bookmark_suggestions_provider.h"
81 #include "components/ntp_snippets/content_suggestions_service.h" 81 #include "components/ntp_snippets/content_suggestions_service.h"
82 #include "components/ntp_snippets/remote/remote_suggestions_provider.h" 82 #include "components/ntp_snippets/remote/remote_suggestions_provider_impl.h"
83 #include "components/ntp_snippets/remote/request_throttler.h" 83 #include "components/ntp_snippets/remote/request_throttler.h"
84 #include "components/ntp_snippets/remote/scheduling_remote_suggestions_provider. h"
84 #include "components/ntp_snippets/sessions/foreign_sessions_suggestions_provider .h" 85 #include "components/ntp_snippets/sessions/foreign_sessions_suggestions_provider .h"
85 #include "components/ntp_snippets/user_classifier.h" 86 #include "components/ntp_snippets/user_classifier.h"
86 #include "components/ntp_tiles/most_visited_sites.h" 87 #include "components/ntp_tiles/most_visited_sites.h"
87 #include "components/omnibox/browser/zero_suggest_provider.h" 88 #include "components/omnibox/browser/zero_suggest_provider.h"
88 #include "components/password_manager/core/browser/password_bubble_experiment.h" 89 #include "components/password_manager/core/browser/password_bubble_experiment.h"
89 #include "components/password_manager/core/browser/password_manager.h" 90 #include "components/password_manager/core/browser/password_manager.h"
90 #include "components/policy/core/browser/browser_policy_connector.h" 91 #include "components/policy/core/browser/browser_policy_connector.h"
91 #include "components/policy/core/browser/url_blacklist_manager.h" 92 #include "components/policy/core/browser/url_blacklist_manager.h"
92 #include "components/policy/core/common/policy_statistics_collector.h" 93 #include "components/policy/core/common/policy_statistics_collector.h"
93 #include "components/pref_registry/pref_registry_syncable.h" 94 #include "components/pref_registry/pref_registry_syncable.h"
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
488 DownloadPrefs::RegisterProfilePrefs(registry); 489 DownloadPrefs::RegisterProfilePrefs(registry);
489 HostContentSettingsMap::RegisterProfilePrefs(registry); 490 HostContentSettingsMap::RegisterProfilePrefs(registry);
490 IncognitoModePrefs::RegisterProfilePrefs(registry); 491 IncognitoModePrefs::RegisterProfilePrefs(registry);
491 InstantUI::RegisterProfilePrefs(registry); 492 InstantUI::RegisterProfilePrefs(registry);
492 NavigationCorrectionTabObserver::RegisterProfilePrefs(registry); 493 NavigationCorrectionTabObserver::RegisterProfilePrefs(registry);
493 MediaCaptureDevicesDispatcher::RegisterProfilePrefs(registry); 494 MediaCaptureDevicesDispatcher::RegisterProfilePrefs(registry);
494 MediaDeviceIDSalt::RegisterProfilePrefs(registry); 495 MediaDeviceIDSalt::RegisterProfilePrefs(registry);
495 MediaStreamDevicesController::RegisterProfilePrefs(registry); 496 MediaStreamDevicesController::RegisterProfilePrefs(registry);
496 NotifierStateTracker::RegisterProfilePrefs(registry); 497 NotifierStateTracker::RegisterProfilePrefs(registry);
497 ntp_snippets::BookmarkSuggestionsProvider::RegisterProfilePrefs(registry); 498 ntp_snippets::BookmarkSuggestionsProvider::RegisterProfilePrefs(registry);
499 ntp_snippets::ContentSuggestionsService::RegisterProfilePrefs(registry);
498 ntp_snippets::ForeignSessionsSuggestionsProvider::RegisterProfilePrefs( 500 ntp_snippets::ForeignSessionsSuggestionsProvider::RegisterProfilePrefs(
499 registry); 501 registry);
500 ntp_snippets::RemoteSuggestionsProvider::RegisterProfilePrefs(registry); 502 ntp_snippets::RemoteSuggestionsProviderImpl::RegisterProfilePrefs(registry);
501 ntp_snippets::ContentSuggestionsService::RegisterProfilePrefs(registry);
502 ntp_snippets::RequestThrottler::RegisterProfilePrefs(registry); 503 ntp_snippets::RequestThrottler::RegisterProfilePrefs(registry);
504 ntp_snippets::SchedulingRemoteSuggestionsProvider::RegisterProfilePrefs(
505 registry);
503 ntp_snippets::UserClassifier::RegisterProfilePrefs(registry); 506 ntp_snippets::UserClassifier::RegisterProfilePrefs(registry);
504 ntp_tiles::MostVisitedSites::RegisterProfilePrefs(registry); 507 ntp_tiles::MostVisitedSites::RegisterProfilePrefs(registry);
505 password_bubble_experiment::RegisterPrefs(registry); 508 password_bubble_experiment::RegisterPrefs(registry);
506 password_manager::PasswordManager::RegisterProfilePrefs(registry); 509 password_manager::PasswordManager::RegisterProfilePrefs(registry);
507 PrefProxyConfigTrackerImpl::RegisterProfilePrefs(registry); 510 PrefProxyConfigTrackerImpl::RegisterProfilePrefs(registry);
508 PrefsTabHelper::RegisterProfilePrefs(registry); 511 PrefsTabHelper::RegisterProfilePrefs(registry);
509 Profile::RegisterProfilePrefs(registry); 512 Profile::RegisterProfilePrefs(registry);
510 ProfileImpl::RegisterProfilePrefs(registry); 513 ProfileImpl::RegisterProfilePrefs(registry);
511 ProtocolHandlerRegistry::RegisterProfilePrefs(registry); 514 ProtocolHandlerRegistry::RegisterProfilePrefs(registry);
512 PushMessagingAppIdentifier::RegisterProfilePrefs(registry); 515 PushMessagingAppIdentifier::RegisterProfilePrefs(registry);
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
790 // Added 8/2016. 793 // Added 8/2016.
791 profile_prefs->ClearPref(kStaticEncodings); 794 profile_prefs->ClearPref(kStaticEncodings);
792 profile_prefs->ClearPref(kRecentlySelectedEncoding); 795 profile_prefs->ClearPref(kRecentlySelectedEncoding);
793 796
794 // Added 9/2016. 797 // Added 9/2016.
795 profile_prefs->ClearPref(kWebKitUsesUniversalDetector); 798 profile_prefs->ClearPref(kWebKitUsesUniversalDetector);
796 profile_prefs->ClearPref(kWebKitAllowDisplayingInsecureContent); 799 profile_prefs->ClearPref(kWebKitAllowDisplayingInsecureContent);
797 } 800 }
798 801
799 } // namespace chrome 802 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698