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

Unified Diff: components/ntp_snippets/content_suggestions_provider.h

Issue 2251743002: Refactor OfflinePageSuggestionsProvider dismissed ID handling (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@offlinedelete
Patch Set: Fire OnSuggestionInvalidated even if previously dismissed Created 4 years, 4 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_provider.h
diff --git a/components/ntp_snippets/content_suggestions_provider.h b/components/ntp_snippets/content_suggestions_provider.h
index c9ba0bfc5eea3059da174b32ce902cb9a95a86d1..836fd41996ddd1d2589959e73426e70f72194709 100644
--- a/components/ntp_snippets/content_suggestions_provider.h
+++ b/components/ntp_snippets/content_suggestions_provider.h
@@ -72,7 +72,8 @@ class ContentSuggestionsProvider {
// when the content that the suggestion refers to is gone.
// Note that this event may be fired even if the corresponding |category| is
// not currently AVAILABLE, because open UIs may still be showing the
- // suggestion that is to be removed.
+ // suggestion that is to be removed. This event may also be fired for
+ // |suggestion_id|s that never existed and should be ignored in that case.
virtual void OnSuggestionInvalidated(ContentSuggestionsProvider* provider,
Category category,
const std::string& suggestion_id) = 0;

Powered by Google App Engine
This is Rietveld 408576698