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

Unified Diff: components/ntp_snippets/ntp_snippets_service.cc

Issue 2194203002: Make ContentSuggestionsService recognize new/removed categories (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@renaming
Patch Set: Rename EnsureCategoryRegistered to RegisterCategoryIfRequired Created 4 years, 5 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/ntp_snippets_service.cc
diff --git a/components/ntp_snippets/ntp_snippets_service.cc b/components/ntp_snippets/ntp_snippets_service.cc
index 825de07f89ae8d900c5a7f625c97336a98a5a242..8455fca6ca3affb3ced2a4745166749c7570b32a 100644
--- a/components/ntp_snippets/ntp_snippets_service.cc
+++ b/components/ntp_snippets/ntp_snippets_service.cc
@@ -797,12 +797,13 @@ void NTPSnippetsService::NotifyNewSuggestions() {
suggestion.set_score(snippet->score());
result.emplace_back(std::move(suggestion));
}
- observer_->OnNewSuggestions(provided_category_, std::move(result));
+ observer_->OnNewSuggestions(this, provided_category_, std::move(result));
}
void NTPSnippetsService::NotifyCategoryStatusChanged() {
if (observer_) {
- observer_->OnCategoryStatusChanged(provided_category_, category_status_);
+ observer_->OnCategoryStatusChanged(this, provided_category_,
+ category_status_);
}
}

Powered by Google App Engine
This is Rietveld 408576698