DescriptionAdd CategoryInfo for meta information of content suggestions Categories
Apart from the ContentSuggestions in a Category and its current status,
there is meta information assigned with a Category that does not change
even for dynamically added categories. This information includes the
title, for example.
Implement a new CategoryInfo struct (with currently only the title
and a card_layout field) and corresponding methods to hand the
information from the ContentSuggestionsProviders to the
ContentSuggestionsService and out towards the UI.
Implement those methods in the three providers we currently have.
For the offline pages, only use a placeholder string at the moment,
because it will provide two distinct categories with different titles
in the future.
BUG=632320
Committed: https://crrev.com/bd2f650a67858b6b88ddbd1c7edd4833e55fabed
Cr-Commit-Position: refs/heads/master@{#410672}
Patch Set 1 #Patch Set 2 : Rebase #
Total comments: 11
Patch Set 3 : Remove unnecessary include #
Total comments: 8
Patch Set 4 : Peter's comments #Patch Set 5 : Add ContentSuggestionsCardLayout #
Total comments: 8
Patch Set 6 : Marc's comments #Patch Set 7 : Use base::Optional for ContentSuggestionsService::GetCategoryInfo #
Total comments: 10
Patch Set 8 : Use localized string for Recent bookmarks header #Patch Set 9 : Rebase #Patch Set 10 : DCHECK against empty base::Optional<CategoryInfo> in SnippetsInternals #Dependent Patchsets: Messages
Total messages: 47 (17 generated)
|