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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPageUma.java

Issue 2321063003: Ntp: add UMA for Learn More clicks. (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: chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPageUma.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPageUma.java b/chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPageUma.java
index 3a56bfb8c478e4a2030bb00ce8d61daef0f01e26..8c4372ef81ad0cd9ff5d16075d0a29d46626b422 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPageUma.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPageUma.java
@@ -26,7 +26,9 @@ import java.util.concurrent.TimeUnit;
* Records UMA stats for which actions the user takes on the NTP in the
* "NewTabPage.ActionAndroid" histogram.
*/
-public class NewTabPageUma {
+public final class NewTabPageUma {
+ private NewTabPageUma() {}
+
// Possible actions taken by the user on the NTP. These values are also defined in
// histograms.xml. WARNING: these values must stay in sync with histograms.xml.
@@ -48,8 +50,10 @@ public class NewTabPageUma {
public static final int ACTION_OPENED_SNIPPET = 7;
// User clicked on an interest item.
public static final int ACTION_CLICKED_INTEREST = 8;
+ // User clicked on the "learn more" link in the footer.
+ public static final int ACTION_CLICKED_LEARN_MORE = 9;
// The number of possible actions
- private static final int NUM_ACTIONS = 9;
+ private static final int NUM_ACTIONS = 10;
// User navigated to a page using the omnibox.
private static final int RAPPOR_ACTION_NAVIGATED_USING_OMNIBOX = 0;
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPage.java ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698