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

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

Issue 2236303002: Make OfflinePage ContentSuggestions dismissable (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: base::Value --> std::unique_ptr<base::Value> Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | 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 9d30964d52f88dce270d7a115f7686e315989ab9..d75dea878d2be27b0d67aab70e34aed57446d8ea 100644
--- a/chrome/browser/ntp_snippets/content_suggestions_service_factory.cc
+++ b/chrome/browser/ntp_snippets/content_suggestions_service_factory.cc
@@ -134,7 +134,8 @@ KeyedService* ContentSuggestionsServiceFactory::BuildServiceInstanceFor(
std::unique_ptr<OfflinePageSuggestionsProvider>
offline_page_suggestions_provider =
base::MakeUnique<OfflinePageSuggestionsProvider>(
- service, service->category_factory(), offline_page_model);
+ service, service->category_factory(), offline_page_model,
+ profile->GetPrefs());
service->RegisterProvider(std::move(offline_page_suggestions_provider));
}
#endif // OS_ANDROID
« no previous file with comments | « no previous file | chrome/browser/prefs/browser_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698