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

Unified Diff: components/ntp_snippets/content_suggestions_service.cc

Issue 2342553002: 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: 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 1f318c75a6e212fbe9746860810be6fb46658ae9..1dc7df666e383ce285e509475058f6383910281f 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