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

Unified Diff: components/ntp_snippets/remote/ntp_snippets_service.h

Issue 2438543003: [NTP Snippets] NTPSnippetsService: notify about new suggestions only in changed categories (Closed)
Patch Set: Created 4 years, 2 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/remote/ntp_snippets_service.h
diff --git a/components/ntp_snippets/remote/ntp_snippets_service.h b/components/ntp_snippets/remote/ntp_snippets_service.h
index bfa4e2207068130606c09e0aa84b8cb4de83e053..6af55c661113107e0ec9025f942c84daa168a137 100644
--- a/components/ntp_snippets/remote/ntp_snippets_service.h
+++ b/components/ntp_snippets/remote/ntp_snippets_service.h
@@ -271,9 +271,9 @@ class NTPSnippetsService final : public ContentSuggestionsProvider,
// Do not call directly, use |EnterState| instead.
void EnterStateError();
- // Converts the cached snippets to article content suggestions and notifies
- // the observers.
- void NotifyNewSuggestions();
+ // Converts the cached snippets in the given |category| to content suggestions
+ // and notifies the observer.
+ void NotifyNewSuggestions(Category category);
// Updates the internal status for |category| to |category_status_| and
// notifies the content suggestions observer if it changed.

Powered by Google App Engine
This is Rietveld 408576698