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

Unified Diff: chrome/browser/ntp_snippets/ntp_snippets_metrics.h

Issue 2790183002: Add UMA for the content suggestions settings (Closed)
Patch Set: address comments and rebase Created 3 years, 8 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: chrome/browser/ntp_snippets/ntp_snippets_metrics.h
diff --git a/chrome/browser/ntp_snippets/ntp_snippets_metrics.h b/chrome/browser/ntp_snippets/ntp_snippets_metrics.h
index 10c36b818fa31d47820958dfcc6573d87d797398..2e70f563e8fc8204e7090ca6c4437e4b17513672 100644
--- a/chrome/browser/ntp_snippets/ntp_snippets_metrics.h
+++ b/chrome/browser/ntp_snippets/ntp_snippets_metrics.h
@@ -12,7 +12,10 @@ enum ContentSuggestionsNotificationImpression {
MAX_CONTENT_SUGGESTIONS_NOTIFICATION_IMPRESSION
};
+// TODO(https://crbug.com/710254) Switch to enum class to remove need for
+// prefix strip.
// GENERATED_JAVA_ENUM_PACKAGE: org.chromium.chrome.browser.ntp.snippets
+// GENERATED_JAVA_PREFIX_TO_STRIP: CONTENT_SUGGESTIONS_
enum ContentSuggestionsNotificationAction {
CONTENT_SUGGESTIONS_TAP = 0, // User tapped notification to open article.
CONTENT_SUGGESTIONS_DISMISSAL, // User swiped notification to dismiss it.
@@ -23,9 +26,13 @@ enum ContentSuggestionsNotificationAction {
CONTENT_SUGGESTIONS_HIDE_DISABLED, // NTP no longer shows whole category.
CONTENT_SUGGESTIONS_HIDE_SHUTDOWN, // Content sugg service is shutting down.
+ CONTENT_SUGGESTIONS_OPEN_SETTINGS, // User opened settings from notification.
+
MAX_CONTENT_SUGGESTIONS_NOTIFICATION_ACTION
};
+// GENERATED_JAVA_ENUM_PACKAGE: org.chromium.chrome.browser.ntp.snippets
+// GENERATED_JAVA_PREFIX_TO_STRIP: CONTENT_SUGGESTIONS_
enum ContentSuggestionsNotificationOptOut {
CONTENT_SUGGESTIONS_IMPLICIT = 0, // User ignored notifications.
CONTENT_SUGGESTIONS_EXPLICIT, // User explicitly opted-out.
« no previous file with comments | « chrome/browser/android/ntp/ntp_snippets_bridge.cc ('k') | components/ntp_snippets/content_suggestions_metrics.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698