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

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: Update based on David's comment. 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 06b8dbbbf048c4743e541d7051b0a272d2c2b12c..bdd12c62a44ccef6f12d25c5319c345fd83f4a35 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
@@ -30,7 +30,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})
public @interface SystemNotificationType {}
/*
@@ -52,8 +52,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