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

Unified Diff: components/ntp_snippets/content_suggestions_service.cc

Issue 2557363002: [NTP Snippets] Refactor background scheduling for remote suggestions (Closed)
Patch Set: Make unit-tests pass Created 4 years 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 92ef4b46aea07264201b3124a229e25d8fc8cab1..17dddd856a30c53a2422dd486f1dd6bd02bfabba 100644
--- a/components/ntp_snippets/content_suggestions_service.cc
+++ b/components/ntp_snippets/content_suggestions_service.cc
@@ -29,7 +29,7 @@ ContentSuggestionsService::ContentSuggestionsService(
: state_(state),
signin_observer_(this),
history_service_observer_(this),
- ntp_snippets_service_(nullptr),
+ remote_suggestions_provider_(nullptr),
pref_service_(pref_service),
user_classifier_(pref_service) {
// Can be null in tests.
@@ -47,7 +47,7 @@ ContentSuggestionsService::ContentSuggestionsService(
ContentSuggestionsService::~ContentSuggestionsService() = default;
void ContentSuggestionsService::Shutdown() {
- ntp_snippets_service_ = nullptr;
+ remote_suggestions_provider_ = nullptr;
suggestions_by_category_.clear();
providers_by_category_.clear();
categories_.clear();

Powered by Google App Engine
This is Rietveld 408576698