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

Unified Diff: components/ntp_snippets/bookmarks/bookmark_suggestions_provider.cc

Issue 2207493002: Add CategoryInfo for meta information of content suggestions Categories (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add ContentSuggestionsCardLayout 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/bookmarks/bookmark_suggestions_provider.cc
diff --git a/components/ntp_snippets/bookmarks/bookmark_suggestions_provider.cc b/components/ntp_snippets/bookmarks/bookmark_suggestions_provider.cc
index 85457d2d8d568928e35f897e412e3415de495180..78002e4046316e2b52fdceade7ea4c225b37aa24 100644
--- a/components/ntp_snippets/bookmarks/bookmark_suggestions_provider.cc
+++ b/components/ntp_snippets/bookmarks/bookmark_suggestions_provider.cc
@@ -64,6 +64,12 @@ CategoryStatus BookmarkSuggestionsProvider::GetCategoryStatus(
return category_status_;
}
+CategoryInfo BookmarkSuggestionsProvider::GetCategoryInfo(Category category) {
+ // TODO(pke): Use the proper string once it's agreed on.
+ return CategoryInfo(base::ASCIIToUTF16("Recent bookmarks"),
+ ContentSuggestionsCardLayout::MINIMAL_CARD);
+}
+
void BookmarkSuggestionsProvider::DismissSuggestion(
const std::string& suggestion_id) {
// TODO(jkrcal): Implement blacklisting bookmarks until they are next visited.

Powered by Google App Engine
This is Rietveld 408576698