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

Unified Diff: components/ntp_snippets/offline_pages/offline_page_suggestions_provider.cc

Issue 2249903003: 📰 Empty state handling for the Bookmarks section (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix tests 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/offline_pages/offline_page_suggestions_provider.cc
diff --git a/components/ntp_snippets/offline_pages/offline_page_suggestions_provider.cc b/components/ntp_snippets/offline_pages/offline_page_suggestions_provider.cc
index 0c153735bee2a199a1d5cf08bd9c0b2de1880202..b3349e6edc5907921d920d3aab8472fbaba51e30 100644
--- a/components/ntp_snippets/offline_pages/offline_page_suggestions_provider.cc
+++ b/components/ntp_snippets/offline_pages/offline_page_suggestions_provider.cc
@@ -109,18 +109,21 @@ CategoryInfo OfflinePageSuggestionsProvider::GetCategoryInfo(
return CategoryInfo(l10n_util::GetStringUTF16(
IDS_NTP_RECENT_TAB_SUGGESTIONS_SECTION_HEADER),
ContentSuggestionsCardLayout::MINIMAL_CARD,
- /* has_more_button */ false);
+ /* has_more_button */ false,
+ /* show_if_empty */ false);
}
if (category == downloads_category_) {
return CategoryInfo(
l10n_util::GetStringUTF16(IDS_NTP_DOWNLOAD_SUGGESTIONS_SECTION_HEADER),
ContentSuggestionsCardLayout::MINIMAL_CARD,
- /* has_more_button */ download_manager_ui_enabled_);
+ /* has_more_button */ download_manager_ui_enabled_,
+ /* show_if_empty */ false);
}
NOTREACHED() << "Unknown category " << category.id();
return CategoryInfo(base::string16(),
ContentSuggestionsCardLayout::MINIMAL_CARD,
- /* has_more_button */ false);
+ /* has_more_button */ false,
+ /* show_if_empty */ false);
}
void OfflinePageSuggestionsProvider::DismissSuggestion(

Powered by Google App Engine
This is Rietveld 408576698