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

Unified Diff: components/ntp_snippets/ntp_snippets_service.h

Issue 2325473003: Support server-provided category names. (Closed)
Patch Set: Created 4 years, 3 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/ntp_snippets_service.h
diff --git a/components/ntp_snippets/ntp_snippets_service.h b/components/ntp_snippets/ntp_snippets_service.h
index 701d08a29b675ef0a3ffdd46f095e4c12288810b..8426f971c1a18ce118e90a07d28b85b5c82ea36a 100644
--- a/components/ntp_snippets/ntp_snippets_service.h
+++ b/components/ntp_snippets/ntp_snippets_service.h
@@ -290,9 +290,13 @@ class NTPSnippetsService : public ContentSuggestionsProvider,
const Category articles_category_;
+ // TODO(sfiera): Reduce duplication of CategoryContent with CategoryInfo.
struct CategoryContent {
CategoryStatus status = CategoryStatus::INITIALIZING;
+ // The title of the section, localized to the running UI language.
+ base::string16 localized_title;
+
// True iff the server returned results in this category in the last fetch.
// We never remove categories that the server still provides, but if the
// server stops providing a category, we won't yet report it as NOT_PROVIDED
« no previous file with comments | « components/ntp_snippets/ntp_snippets_fetcher_unittest.cc ('k') | components/ntp_snippets/ntp_snippets_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698