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

Unified Diff: components/ntp_snippets/offline_pages/offline_page_suggestions_provider.cc

Issue 2194203002: Make ContentSuggestionsService recognize new/removed categories (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@renaming
Patch Set: Marc's comments 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
« no previous file with comments | « components/ntp_snippets/ntp_snippets_service.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/ntp_snippets/offline_pages/offline_page_suggestions_provider.cc
diff --git a/components/ntp_snippets/offline_pages/offline_page_suggestions_provider.cc b/components/ntp_snippets/offline_pages/offline_page_suggestions_provider.cc
index eec605b00b188d6e1d32d9c7ec1f12e34821759a..d6cfe9ee00ee0a9321a9817949da3a3c43f4a89f 100644
--- a/components/ntp_snippets/offline_pages/offline_page_suggestions_provider.cc
+++ b/components/ntp_snippets/offline_pages/offline_page_suggestions_provider.cc
@@ -129,7 +129,7 @@ void OfflinePageSuggestionsProvider::OnOfflinePagesLoaded(
break;
}
- observer_->OnNewSuggestions(provided_category_, std::move(suggestions));
+ observer_->OnNewSuggestions(this, provided_category_, std::move(suggestions));
}
void OfflinePageSuggestionsProvider::NotifyStatusChanged(
@@ -140,7 +140,7 @@ void OfflinePageSuggestionsProvider::NotifyStatusChanged(
if (!observer_)
return;
- observer_->OnCategoryStatusChanged(provided_category_, new_status);
+ observer_->OnCategoryStatusChanged(this, provided_category_, new_status);
}
} // namespace ntp_snippets
« no previous file with comments | « components/ntp_snippets/ntp_snippets_service.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698