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

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

Issue 2922543002: [NTP::Push] Add Content Suggestions GCM App Handler (Closed)
Patch Set: Implement unsubscribe. Created 3 years, 6 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 | components/ntp_snippets/BUILD.gn » ('j') | components/ntp_snippets/DEPS » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/autofill/core/browser/autofill_manager.h" 72 #include "components/autofill/core/browser/autofill_manager.h"
73 #include "components/browsing_data/core/pref_names.h" 73 #include "components/browsing_data/core/pref_names.h"
74 #include "components/certificate_transparency/ct_policy_manager.h" 74 #include "components/certificate_transparency/ct_policy_manager.h"
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/breaking_news/content_suggestions_gcm_app_hand ler.h"
82 #include "components/ntp_snippets/breaking_news/subscription_manager.h" 83 #include "components/ntp_snippets/breaking_news/subscription_manager.h"
83 #include "components/ntp_snippets/content_suggestions_service.h" 84 #include "components/ntp_snippets/content_suggestions_service.h"
84 #include "components/ntp_snippets/remote/remote_suggestions_provider_impl.h" 85 #include "components/ntp_snippets/remote/remote_suggestions_provider_impl.h"
85 #include "components/ntp_snippets/remote/remote_suggestions_scheduler_impl.h" 86 #include "components/ntp_snippets/remote/remote_suggestions_scheduler_impl.h"
86 #include "components/ntp_snippets/remote/request_throttler.h" 87 #include "components/ntp_snippets/remote/request_throttler.h"
87 #include "components/ntp_snippets/sessions/foreign_sessions_suggestions_provider .h" 88 #include "components/ntp_snippets/sessions/foreign_sessions_suggestions_provider .h"
88 #include "components/ntp_snippets/user_classifier.h" 89 #include "components/ntp_snippets/user_classifier.h"
89 #include "components/ntp_tiles/most_visited_sites.h" 90 #include "components/ntp_tiles/most_visited_sites.h"
90 #include "components/omnibox/browser/zero_suggest_provider.h" 91 #include "components/omnibox/browser/zero_suggest_provider.h"
91 #include "components/password_manager/core/browser/password_bubble_experiment.h" 92 #include "components/password_manager/core/browser/password_bubble_experiment.h"
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after
485 HostContentSettingsMap::RegisterProfilePrefs(registry); 486 HostContentSettingsMap::RegisterProfilePrefs(registry);
486 ImportantSitesUtil::RegisterProfilePrefs(registry); 487 ImportantSitesUtil::RegisterProfilePrefs(registry);
487 IncognitoModePrefs::RegisterProfilePrefs(registry); 488 IncognitoModePrefs::RegisterProfilePrefs(registry);
488 InstantUI::RegisterProfilePrefs(registry); 489 InstantUI::RegisterProfilePrefs(registry);
489 NavigationCorrectionTabObserver::RegisterProfilePrefs(registry); 490 NavigationCorrectionTabObserver::RegisterProfilePrefs(registry);
490 MediaCaptureDevicesDispatcher::RegisterProfilePrefs(registry); 491 MediaCaptureDevicesDispatcher::RegisterProfilePrefs(registry);
491 MediaDeviceIDSalt::RegisterProfilePrefs(registry); 492 MediaDeviceIDSalt::RegisterProfilePrefs(registry);
492 MediaStreamDevicesController::RegisterProfilePrefs(registry); 493 MediaStreamDevicesController::RegisterProfilePrefs(registry);
493 NetHttpSessionParamsObserver::RegisterProfilePrefs(registry); 494 NetHttpSessionParamsObserver::RegisterProfilePrefs(registry);
494 NotifierStateTracker::RegisterProfilePrefs(registry); 495 NotifierStateTracker::RegisterProfilePrefs(registry);
496 ntp_snippets::ContentSuggestionsGCMAppHandler::RegisterProfilePrefs(registry);
495 ntp_snippets::ContentSuggestionsService::RegisterProfilePrefs(registry); 497 ntp_snippets::ContentSuggestionsService::RegisterProfilePrefs(registry);
496 ntp_snippets::ForeignSessionsSuggestionsProvider::RegisterProfilePrefs( 498 ntp_snippets::ForeignSessionsSuggestionsProvider::RegisterProfilePrefs(
497 registry); 499 registry);
498 ntp_snippets::RemoteSuggestionsProviderImpl::RegisterProfilePrefs(registry); 500 ntp_snippets::RemoteSuggestionsProviderImpl::RegisterProfilePrefs(registry);
499 ntp_snippets::RemoteSuggestionsSchedulerImpl::RegisterProfilePrefs(registry); 501 ntp_snippets::RemoteSuggestionsSchedulerImpl::RegisterProfilePrefs(registry);
500 ntp_snippets::RequestThrottler::RegisterProfilePrefs(registry); 502 ntp_snippets::RequestThrottler::RegisterProfilePrefs(registry);
501 ntp_snippets::SubscriptionManager::RegisterProfilePrefs(registry); 503 ntp_snippets::SubscriptionManager::RegisterProfilePrefs(registry);
502 ntp_snippets::UserClassifier::RegisterProfilePrefs(registry); 504 ntp_snippets::UserClassifier::RegisterProfilePrefs(registry);
503 ntp_tiles::MostVisitedSites::RegisterProfilePrefs(registry); 505 ntp_tiles::MostVisitedSites::RegisterProfilePrefs(registry);
504 password_bubble_experiment::RegisterPrefs(registry); 506 password_bubble_experiment::RegisterPrefs(registry);
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
808 // default values for all prefs locally. Since we already have the defaults it 810 // default values for all prefs locally. Since we already have the defaults it
809 // would be wasteful to request them from the service by connecting to the 811 // would be wasteful to request them from the service by connecting to the
810 // DEFAULT_STORE. 812 // DEFAULT_STORE.
811 // TODO(sammc): Once we have this distinction, connect to the default pref 813 // TODO(sammc): Once we have this distinction, connect to the default pref
812 // store here (by erasing it from |pref_stores|). 814 // store here (by erasing it from |pref_stores|).
813 pref_stores.erase(PrefValueStore::USER_STORE); 815 pref_stores.erase(PrefValueStore::USER_STORE);
814 return pref_stores; 816 return pref_stores;
815 } 817 }
816 818
817 } // namespace chrome 819 } // namespace chrome
OLDNEW
« no previous file with comments | « no previous file | components/ntp_snippets/BUILD.gn » ('j') | components/ntp_snippets/DEPS » ('J')

Powered by Google App Engine
This is Rietveld 408576698