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

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

Issue 2400783003: Ntp: show AllDismissedItem when all sections have been dismissed. (Closed)
Patch Set: Address comments from treib, add tests. Created 4 years, 2 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 8c4372ef81ad0cd9ff5d16075d0a29d46626b422..38cd58611625a30e0b9cfdbec7f3410da5ac1c7c 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
@@ -49,11 +49,14 @@ public final class NewTabPageUma {
// User navigated to the webpage for a snippet shown on the NTP.
public static final int ACTION_OPENED_SNIPPET = 7;
// User clicked on an interest item.
+ // TODO(mvanouwerkerk): Remove this unused action and clean up histograms accordingly.
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;
+ // User clicked on the "Refresh" button in the "all dismissed" state.
+ public static final int ACTION_CLICKED_ALL_DISMISSED_REFRESH = 10;
// The number of possible actions
- private static final int NUM_ACTIONS = 10;
+ private static final int NUM_ACTIONS = 11;
// User navigated to a page using the omnibox.
private static final int RAPPOR_ACTION_NAVIGATED_USING_OMNIBOX = 0;

Powered by Google App Engine
This is Rietveld 408576698