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

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

Issue 2560783002: [NTP::PhysicalWeb] Implement suggestion dismissal. (Closed)
Patch Set: 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
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 2b623d629e97dc13c441e45d442032b3903052e9..d5a92251674a3a78dc32173d977c9e2edc7d769b 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

Powered by Google App Engine
This is Rietveld 408576698