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

Unified Diff: components/ntp_snippets/content_suggestions_service.cc

Issue 2315273002: Measure usage metrics to prepare for adaptive fetching rates in M55 (Closed)
Patch Set: Bernhard's comments 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: components/ntp_snippets/content_suggestions_service.cc
diff --git a/components/ntp_snippets/content_suggestions_service.cc b/components/ntp_snippets/content_suggestions_service.cc
index 41b29f67d78eabe9268dde160523631f725f7d39..b2addff8aae5b9cd1349b3f69e12b8a6f88d65e2 100644
--- a/components/ntp_snippets/content_suggestions_service.cc
+++ b/components/ntp_snippets/content_suggestions_service.cc
@@ -7,6 +7,7 @@
#include <algorithm>
#include <iterator>
#include <set>
+#include <utility>
#include "base/bind.h"
#include "base/location.h"
@@ -18,8 +19,11 @@ namespace ntp_snippets {
ContentSuggestionsService::ContentSuggestionsService(
State state,
- history::HistoryService* history_service)
- : state_(state), history_service_observer_(this) {
+ history::HistoryService* history_service,
+ PrefService* pref_service)
+ : state_(state),
+ history_service_observer_(this),
+ user_classifier_(pref_service) {
// Can be null in tests.
if (history_service)
history_service_observer_.Add(history_service);
« no previous file with comments | « components/ntp_snippets/content_suggestions_service.h ('k') | components/ntp_snippets/content_suggestions_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698