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

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

Issue 2315273002: Measure usage metrics to prepare for adaptive fetching rates in M55 (Closed)
Patch Set: Created 4 years, 3 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
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 bc220c2688477e507d7917b79c23c93f35abf711..199d14995898ed80b7e29f14cef17d853f3a7fbb 100644
--- a/chrome/browser/ntp_snippets/content_suggestions_service_factory.cc
+++ b/chrome/browser/ntp_snippets/content_suggestions_service_factory.cc
@@ -211,8 +211,9 @@ KeyedService* ContentSuggestionsServiceFactory::BuildServiceInstanceFor(
: State::DISABLED;
HistoryService* history_service = HistoryServiceFactory::GetForProfile(
profile, ServiceAccessType::EXPLICIT_ACCESS);
+ PrefService* pref_service = profile->GetPrefs();
ContentSuggestionsService* service =
- new ContentSuggestionsService(state, history_service);
+ new ContentSuggestionsService(state, history_service, pref_service);
if (state == State::DISABLED) {
// Since we won't initialise the services, they won't get a chance to
// unschedule their tasks. We do it explicitly here instead.
@@ -221,7 +222,6 @@ KeyedService* ContentSuggestionsServiceFactory::BuildServiceInstanceFor(
}
CategoryFactory* category_factory = service->category_factory();
- PrefService* pref_service = profile->GetPrefs();
#if defined(OS_ANDROID)
OfflinePageModel* offline_page_model =
OfflinePageModelFactory::GetForBrowserContext(profile);

Powered by Google App Engine
This is Rietveld 408576698