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

Unified Diff: components/ntp_snippets/content_suggestions_service_unittest.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/content_suggestions_service_unittest.cc
diff --git a/components/ntp_snippets/content_suggestions_service_unittest.cc b/components/ntp_snippets/content_suggestions_service_unittest.cc
index c56da1e0c1b53b5f800121364357783e759a90ef..4979ced74ef8a9cd7b3997cae2b136a7b8d9ec0d 100644
--- a/components/ntp_snippets/content_suggestions_service_unittest.cc
+++ b/components/ntp_snippets/content_suggestions_service_unittest.cc
@@ -76,12 +76,12 @@ class MockProvider : public ContentSuggestionsProvider {
}
void FireSuggestionsChanged(Category category, std::vector<int> numbers) {
- observer_->OnNewSuggestions(category, CreateSuggestions(numbers));
+ observer_->OnNewSuggestions(this, category, CreateSuggestions(numbers));
}
void FireCategoryStatusChanged(Category category, CategoryStatus new_status) {
statuses_[category.id()] = new_status;
- observer_->OnCategoryStatusChanged(category, new_status);
+ observer_->OnCategoryStatusChanged(this, category, new_status);
}
void FireShutdown() {

Powered by Google App Engine
This is Rietveld 408576698