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

Unified Diff: components/ntp_snippets/remote/ntp_snippets_service.h

Issue 2395753003: [NTP Snippets] Hook up background fetching scheduler to UserClassifier (Closed)
Patch Set: Created 4 years, 2 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/remote/ntp_snippets_service.h
diff --git a/components/ntp_snippets/remote/ntp_snippets_service.h b/components/ntp_snippets/remote/ntp_snippets_service.h
index 43ed9960ffe7d0868b4f6d230768ba928271cb94..50fe9a89195570aec990b6742299ff5f22d22ce7 100644
--- a/components/ntp_snippets/remote/ntp_snippets_service.h
+++ b/components/ntp_snippets/remote/ntp_snippets_service.h
@@ -47,6 +47,7 @@ class SuggestionsProfile;
namespace ntp_snippets {
class NTPSnippetsDatabase;
+class UserClassifier;
// Retrieves fresh content data (articles) from the server, stores them and
// provides them as content suggestions.
@@ -73,6 +74,7 @@ class NTPSnippetsService final : public ContentSuggestionsProvider,
PrefService* pref_service,
suggestions::SuggestionsService* suggestions_service,
const std::string& application_language_code,
+ const UserClassifier* user_classifier,
NTPSnippetsScheduler* scheduler,
std::unique_ptr<NTPSnippetsFetcher> snippets_fetcher,
std::unique_ptr<image_fetcher::ImageFetcher> image_fetcher,
@@ -336,6 +338,9 @@ class NTPSnippetsService final : public ContentSuggestionsProvider,
// The ISO 639-1 code of the language used by the application.
const std::string application_language_code_;
+ // Classifier that tells us how active the user is. Not owned.
+ const UserClassifier* user_classifier_;
+
// Scheduler for fetching snippets. Not owned.
NTPSnippetsScheduler* scheduler_;

Powered by Google App Engine
This is Rietveld 408576698