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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationUmaTracker.java

Issue 2876863002: [Android] Show notification for opening new tab in background of Browser Actions (Closed)
Patch Set: Created 3 years, 7 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/notifications/NotificationUmaTracker.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationUmaTracker.java b/chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationUmaTracker.java
index 312d43d4a11fc9a0c5debed7cb6bade4b1677316..b209e197f8f0942e2c733ef1ca36426dfc5c8139 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationUmaTracker.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationUmaTracker.java
@@ -29,7 +29,7 @@ public class NotificationUmaTracker {
private static final String TAG = "NotifsUMATracker";
@Retention(RetentionPolicy.SOURCE)
@IntDef({DOWNLOAD_FILES, DOWNLOAD_PAGES, CLOSE_INCOGNITO, CONTENT_SUGGESTION, MEDIA_CAPTURE,
- PHYSICAL_WEB, MEDIA, SITES, SYNC, SYSTEM_NOTIFICATION_TYPE_BOUNDARY})
+ PHYSICAL_WEB, MEDIA, SITES, SYNC, BROWSER_ACTIONS, SYSTEM_NOTIFICATION_TYPE_BOUNDARY})
David Trainor- moved to gerrit 2017/05/11 20:26:52 Needto update histograms.xml as well. See the com
ltian 2017/05/11 22:29:53 Done.
public @interface SystemNotificationType {}
/*
@@ -51,8 +51,9 @@ public class NotificationUmaTracker {
public static final int MEDIA = 6;
public static final int SITES = 7;
public static final int SYNC = 8;
+ public static final int BROWSER_ACTIONS = 9;
- private static final int SYSTEM_NOTIFICATION_TYPE_BOUNDARY = 9;
+ private static final int SYSTEM_NOTIFICATION_TYPE_BOUNDARY = 10;
private static final String LAST_SHOWN_NOTIFICATION_TYPE_KEY =
"NotificationUmaTracker.LastShownNotificationType";

Powered by Google App Engine
This is Rietveld 408576698