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

Unified Diff: components/ntp_snippets/content_suggestions_metrics.cc

Issue 2925053003: [NTP::Push] Adding BreakingNewsSuggestionsProvider (Closed)
Patch Set: Fixing the build. Created 3 years, 6 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
« no previous file with comments | « components/ntp_snippets/category.h ('k') | components/ntp_snippets/ntp_snippets_constants.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 348a555694e6b0e289d46e5ad2fef5c719b6725c..8d8e7b20c2a986d54d06e5d1c36acef2011918cb 100644
--- a/components/ntp_snippets/content_suggestions_metrics.cc
+++ b/components/ntp_snippets/content_suggestions_metrics.cc
@@ -78,6 +78,7 @@ enum HistogramCategories {
FOREIGN_TABS,
ARTICLES,
READING_LIST,
+ BREAKING_NEWS,
// Insert new values here!
COUNT
};
@@ -107,6 +108,8 @@ HistogramCategories GetHistogramCategory(Category category) {
return HistogramCategories::ARTICLES;
case KnownCategories::READING_LIST:
return HistogramCategories::READING_LIST;
+ case KnownCategories::BREAKING_NEWS:
+ return HistogramCategories::BREAKING_NEWS;
case KnownCategories::LOCAL_CATEGORIES_COUNT:
case KnownCategories::REMOTE_CATEGORIES_OFFSET:
NOTREACHED();
@@ -137,6 +140,8 @@ std::string GetCategorySuffix(Category category) {
return "Experimental";
case HistogramCategories::READING_LIST:
return "ReadingList";
+ case HistogramCategories::BREAKING_NEWS:
+ return "BreakingNews";
case HistogramCategories::COUNT:
NOTREACHED();
break;
« no previous file with comments | « components/ntp_snippets/category.h ('k') | components/ntp_snippets/ntp_snippets_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698