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

Unified Diff: chrome/browser/android/ntp/content_suggestions_notification_helper.cc

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/android/ntp/content_suggestions_notification_helper.cc
diff --git a/chrome/browser/android/ntp/content_suggestions_notification_helper.cc b/chrome/browser/android/ntp/content_suggestions_notification_helper.cc
index d0c9e2f376a776c4137d84b82a7c06843d427255..3afed6de2e56731bc8221f473e10a36e6d68b487 100644
--- a/chrome/browser/android/ntp/content_suggestions_notification_helper.cc
+++ b/chrome/browser/android/ntp/content_suggestions_notification_helper.cc
@@ -110,6 +110,20 @@ bool ContentSuggestionsNotificationHelper::Register(JNIEnv* env) {
return RegisterNativesImpl(env);
}
+static void RecordNotificationOptOut(JNIEnv* env,
+ const JavaParamRef<jclass>& class_object,
+ jint reason) {
+ RecordContentSuggestionsNotificationOptOut(
+ static_cast<ContentSuggestionsNotificationOptOut>(reason));
+}
+
+static void RecordNotificationAction(JNIEnv* env,
+ const JavaParamRef<jclass>& class_object,
+ jint action) {
+ RecordContentSuggestionsNotificationAction(
+ static_cast<ContentSuggestionsNotificationAction>(action));
+}
+
static void ReceiveFlushedMetrics(JNIEnv* env,
const JavaParamRef<jclass>& class_object,
jint tap_count,

Powered by Google App Engine
This is Rietveld 408576698