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

Unified Diff: components/ntp_snippets/content_suggestions_metrics.cc

Issue 2755113002: Create ReadingListSuggestionsProvider (Closed)
Patch Set: Fix strings Created 3 years, 9 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/content_suggestions_metrics.cc
diff --git a/components/ntp_snippets/content_suggestions_metrics.cc b/components/ntp_snippets/content_suggestions_metrics.cc
index a88d5d1a1f17ea300c4164c8c868a7557465a6a6..b6b7ab553d63f82f66e0f8336e8bf2ef3e040f0c 100644
--- a/components/ntp_snippets/content_suggestions_metrics.cc
+++ b/components/ntp_snippets/content_suggestions_metrics.cc
@@ -76,6 +76,7 @@ enum HistogramCategories {
PHYSICAL_WEB_PAGES,
FOREIGN_TABS,
ARTICLES,
+ READING_LIST,
// Insert new values here!
COUNT
};
@@ -103,6 +104,8 @@ HistogramCategories GetHistogramCategory(Category category) {
return HistogramCategories::FOREIGN_TABS;
case KnownCategories::ARTICLES:
return HistogramCategories::ARTICLES;
+ case KnownCategories::READING_LIST:
+ return HistogramCategories::READING_LIST;
case KnownCategories::LOCAL_CATEGORIES_COUNT:
case KnownCategories::REMOTE_CATEGORIES_OFFSET:
NOTREACHED();
@@ -131,6 +134,8 @@ std::string GetCategorySuffix(Category category) {
return "Articles";
case HistogramCategories::EXPERIMENTAL:
return "Experimental";
+ case HistogramCategories::READING_LIST:
+ return "ReadingList";
case HistogramCategories::COUNT:
NOTREACHED();
break;

Powered by Google App Engine
This is Rietveld 408576698