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

Unified Diff: components/ntp_snippets/category_info.cc

Issue 2447163004: [NTP Snippets] Pass "no suggestions" message from the backend to the UI (Closed)
Patch Set: tests 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/category_info.cc
diff --git a/components/ntp_snippets/category_info.cc b/components/ntp_snippets/category_info.cc
index 4037551f5e876b1cd1d6ebae6091e6918a7aa8b2..391900e8f9537c06a0d043b77b24c80364072e9f 100644
--- a/components/ntp_snippets/category_info.cc
+++ b/components/ntp_snippets/category_info.cc
@@ -9,11 +9,13 @@ namespace ntp_snippets {
CategoryInfo::CategoryInfo(const base::string16& title,
ContentSuggestionsCardLayout card_layout,
bool has_more_button,
- bool show_if_empty)
+ bool show_if_empty,
+ const base::string16& no_suggestions_message)
: title_(title),
card_layout_(card_layout),
has_more_button_(has_more_button),
- show_if_empty_(show_if_empty) {}
+ show_if_empty_(show_if_empty),
+ no_suggestions_message_(no_suggestions_message) {}
CategoryInfo::~CategoryInfo() = default;

Powered by Google App Engine
This is Rietveld 408576698