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

Unified Diff: components/ntp_snippets/content_suggestion.cc

Issue 2780793002: Add extra information for ReadingList ContentSuggestion (Closed)
Patch Set: Address comments Created 3 years, 9 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_suggestion.cc
diff --git a/components/ntp_snippets/content_suggestion.cc b/components/ntp_snippets/content_suggestion.cc
index e5cac6187ed26c3629246355769beb150a8d38e3..3341aad37d5534dfbce98e14fd1ba48ea6abe503 100644
--- a/components/ntp_snippets/content_suggestion.cc
+++ b/components/ntp_snippets/content_suggestion.cc
@@ -55,6 +55,12 @@ void ContentSuggestion::set_recent_tab_suggestion_extra(
recent_tab_suggestion_extra_ = std::move(recent_tab_suggestion_extra);
}
+void ContentSuggestion::set_reading_list_suggestion_extra(
+ std::unique_ptr<ReadingListSuggestionExtra> reading_list_suggestion_extra) {
+ DCHECK(id_.category().IsKnownCategory(KnownCategories::READING_LIST));
+ reading_list_suggestion_extra_ = std::move(reading_list_suggestion_extra);
+}
+
void ContentSuggestion::set_notification_extra(
std::unique_ptr<NotificationExtra> notification_extra) {
notification_extra_ = std::move(notification_extra);

Powered by Google App Engine
This is Rietveld 408576698