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

Unified Diff: components/ntp_snippets/remote/ntp_snippets_service.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/remote/ntp_snippets_service.cc
diff --git a/components/ntp_snippets/remote/ntp_snippets_service.cc b/components/ntp_snippets/remote/ntp_snippets_service.cc
index 2c26c17c5ecce2522cdc148ecad17b3f6b8b06df..fe44999a59eb9e61895ebdaddadf6d2a9bff3853 100644
--- a/components/ntp_snippets/remote/ntp_snippets_service.cc
+++ b/components/ntp_snippets/remote/ntp_snippets_service.cc
@@ -313,10 +313,11 @@ CategoryStatus NTPSnippetsService::GetCategoryStatus(Category category) {
CategoryInfo NTPSnippetsService::GetCategoryInfo(Category category) {
DCHECK(base::ContainsKey(categories_, category));
const CategoryContent& content = categories_[category];
- return CategoryInfo(content.localized_title,
- ContentSuggestionsCardLayout::FULL_CARD,
- /*has_more_button=*/false,
- /*show_if_empty=*/true);
+ return CategoryInfo(
+ content.localized_title, ContentSuggestionsCardLayout::FULL_CARD,
+ /*has_more_button=*/false,
+ /*show_if_empty=*/true,
+ l10n_util::GetStringUTF16(IDS_NTP_ARTICLE_SUGGESTIONS_SECTION_EMPTY));
}
void NTPSnippetsService::DismissSuggestion(

Powered by Google App Engine
This is Rietveld 408576698