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

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: Put the status-change notification back in RegisterProvider() 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 67a23d42f846dca69738bd9c9a1c4e6ba1f6ccbd..109b8bc7a2d2b26357dfaff81262fe94e5b3ba0b 100644
--- a/components/ntp_snippets/ntp_snippets_service.cc
+++ b/components/ntp_snippets/ntp_snippets_service.cc
@@ -795,12 +795,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