Index: components/ntp_snippets/ntp_snippets_service.cc |
diff --git a/components/ntp_snippets/ntp_snippets_service.cc b/components/ntp_snippets/ntp_snippets_service.cc |
index 6bda4d84dfd984546aa134f6013d6b02e90960ba..295acfbcd20c73bdc72e2300baca2449e4add84a 100644 |
--- a/components/ntp_snippets/ntp_snippets_service.cc |
+++ b/components/ntp_snippets/ntp_snippets_service.cc |
@@ -31,6 +31,8 @@ |
#include "components/prefs/pref_service.h" |
#include "components/suggestions/proto/suggestions.pb.h" |
#include "components/variations/variations_associated_data.h" |
+#include "grit/components_strings.h" |
+#include "ui/base/l10n/l10n_util.h" |
#include "ui/gfx/image/image.h" |
using image_fetcher::ImageDecoder; |
@@ -279,6 +281,12 @@ CategoryStatus NTPSnippetsService::GetCategoryStatus(Category category) { |
return category_status_; |
} |
+CategoryInfo NTPSnippetsService::GetCategoryInfo(Category category) { |
+ return CategoryInfo( |
+ l10n_util::GetStringUTF16(IDS_NTP_ARTICLE_SUGGESTIONS_SECTION_HEADER), |
+ ContentSuggestionsCardLayout::FULL_CARD); |
+} |
+ |
void NTPSnippetsService::DismissSuggestion(const std::string& suggestion_id) { |
if (!ready()) |
return; |