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

Unified Diff: components/ntp_snippets/content_suggestions_provider.h

Issue 2284393002: Add ClearHistory() to ContentSuggestionsService and its providers (Closed)
Patch Set: 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 c7fcd056abacc51b0d30dabb2bef7d3d5ace1d67..c07d702b5a6498a954b8e124e859341f90b2de3f 100644
--- a/components/ntp_snippets/content_suggestions_provider.h
+++ b/components/ntp_snippets/content_suggestions_provider.h
@@ -102,6 +102,9 @@ class ContentSuggestionsProvider {
virtual void FetchSuggestionImage(const std::string& suggestion_id,
const ImageFetchedCallback& callback) = 0;
+ // Removes user history (for example dismissed suggestions).
Marc Treib 2016/08/29 09:43:11 I think this deserves a bit more explanation - wit
vitaliii 2016/08/29 10:37:25 Done.
+ virtual void ClearHistory() = 0;
+
// Clears all caches for the given category, so that the next fetch starts
// from scratch.
virtual void ClearCachedSuggestions(Category category) = 0;

Powered by Google App Engine
This is Rietveld 408576698