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

Unified Diff: chrome/browser/ntp_snippets/content_suggestions_service_factory.cc

Issue 2560783002: [NTP::PhysicalWeb] Implement suggestion dismissal. (Closed)
Patch Set: rebase and bauerb@ nit. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/android/preferences/browser_prefs_android.cc ('k') | chrome/browser/prefs/browser_prefs.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ntp_snippets/content_suggestions_service_factory.cc
diff --git a/chrome/browser/ntp_snippets/content_suggestions_service_factory.cc b/chrome/browser/ntp_snippets/content_suggestions_service_factory.cc
index 90fd846817098499f419ad3e8389e4c467aa01d6..e2ed53fdddcd7750134784df4190572b784949a8 100644
--- a/chrome/browser/ntp_snippets/content_suggestions_service_factory.cc
+++ b/chrome/browser/ntp_snippets/content_suggestions_service_factory.cc
@@ -134,9 +134,10 @@ void RegisterBookmarkProvider(BookmarkModel* bookmark_model,
void RegisterPhysicalWebPageProvider(
ContentSuggestionsService* service,
CategoryFactory* category_factory,
- PhysicalWebDataSource* physical_web_data_source) {
+ PhysicalWebDataSource* physical_web_data_source,
+ PrefService* pref_service) {
auto provider = base::MakeUnique<PhysicalWebPageSuggestionsProvider>(
- service, category_factory, physical_web_data_source);
+ service, category_factory, physical_web_data_source, pref_service);
service->RegisterProvider(std::move(provider));
}
#endif // OS_ANDROID
@@ -307,7 +308,7 @@ KeyedService* ContentSuggestionsServiceFactory::BuildServiceInstanceFor(
if (base::FeatureList::IsEnabled(
ntp_snippets::kPhysicalWebPageSuggestionsFeature)) {
RegisterPhysicalWebPageProvider(service, category_factory,
- physical_web_data_source);
+ physical_web_data_source, pref_service);
}
#endif // OS_ANDROID
« no previous file with comments | « chrome/browser/android/preferences/browser_prefs_android.cc ('k') | chrome/browser/prefs/browser_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698