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

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: Fix trybots errors. 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 f74a3eb7612d936305d1bc6fefdf1b7e8b819032..e07f3982bcc1f7435a0eaf2fa771f13e21091dc3 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,8 @@ 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, WEBAPK, SYSTEM_NOTIFICATION_TYPE_BOUNDARY})
+ PHYSICAL_WEB, MEDIA, SITES, SYNC, WEBAPK, BROWSER_ACTIONS,
+ SYSTEM_NOTIFICATION_TYPE_BOUNDARY})
public @interface SystemNotificationType {}
/*
@@ -53,8 +54,9 @@ public class NotificationUmaTracker {
public static final int SITES = 7;
public static final int SYNC = 8;
public static final int WEBAPK = 9;
+ public static final int BROWSER_ACTIONS = 10;
- private static final int SYSTEM_NOTIFICATION_TYPE_BOUNDARY = 10;
+ private static final int SYSTEM_NOTIFICATION_TYPE_BOUNDARY = 11;
private static final String LAST_SHOWN_NOTIFICATION_TYPE_KEY =
"NotificationUmaTracker.LastShownNotificationType";

Powered by Google App Engine
This is Rietveld 408576698