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

Unified Diff: components/ntp_snippets/ntp_snippets_service.h

Issue 2303713002: Implement ClearHistory for all ntp_snippets providers (Closed)
Patch Set: Marc's nits. Created 4 years, 3 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/ntp_snippets_service.h
diff --git a/components/ntp_snippets/ntp_snippets_service.h b/components/ntp_snippets/ntp_snippets_service.h
index b8e1d930d27c903a6b11a14b991a4e6401d15f20..fce675592f628e8aa5f41a6d33c013af5a7bbc83 100644
--- a/components/ntp_snippets/ntp_snippets_service.h
+++ b/components/ntp_snippets/ntp_snippets_service.h
@@ -161,6 +161,11 @@ class NTPSnippetsService : public ContentSuggestionsProvider,
return snippets_;
}
+ // Dismissed snippets, only for unit tests.
+ const NTPSnippet::PtrVector& GetDismissedSnippetsForTesting() const {
+ return dismissed_snippets_;
+ }
+
private:
friend class NTPSnippetsServiceTest;
FRIEND_TEST_ALL_PREFIXES(NTPSnippetsServiceTest, StatusChanges);
« no previous file with comments | « components/ntp_snippets/bookmarks/bookmark_suggestions_provider.cc ('k') | components/ntp_snippets/ntp_snippets_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698