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

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

Issue 2922443002: [Web apks] Stop setting channels on web apk notifications (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 06b8dbbbf048c4743e541d7051b0a272d2c2b12c..b4f041da0c6a47470c88ea979a55719bc3b26427 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
@@ -90,7 +90,7 @@ public class NotificationUmaTracker {
recordHistogram("Mobile.SystemNotification.Blocked", type);
return;
}
- if (BuildInfo.isAtLeastO() && isChannelBlocked(channelId)) {
+ if (BuildInfo.isAtLeastO() && channelId != null && isChannelBlocked(channelId)) {
recordHistogram("Mobile.SystemNotification.ChannelBlocked", type);
return;
}

Powered by Google App Engine
This is Rietveld 408576698