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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/media/ui/MediaSessionTabHelper.java

Issue 1927863003: [Media, UI] Don't record click UMA when content intent is null (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: undo changes in CastNotificationControl.java Created 4 years, 8 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
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/media/router/cast/CastSessionImpl.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/src/org/chromium/chrome/browser/media/ui/MediaSessionTabHelper.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/media/ui/MediaSessionTabHelper.java b/chrome/android/java/src/org/chromium/chrome/browser/media/ui/MediaSessionTabHelper.java
index 0484774aacbd6e2c744864ea8e3d57661b16d35a..083d7095b49409ea3567c8900cd04bf046460bf8 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/media/ui/MediaSessionTabHelper.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/media/ui/MediaSessionTabHelper.java
@@ -114,8 +114,10 @@ public class MediaSessionTabHelper {
}
Intent contentIntent = Tab.createBringTabToFrontIntent(mTab.getId());
- contentIntent.putExtra(MediaNotificationUma.INTENT_EXTRA_NAME,
- MediaNotificationUma.SOURCE_MEDIA);
+ if (contentIntent != null) {
+ contentIntent.putExtra(MediaNotificationUma.INTENT_EXTRA_NAME,
+ MediaNotificationUma.SOURCE_MEDIA);
+ }
mNotificationInfoBuilder =
new MediaNotificationInfo.Builder()
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/media/router/cast/CastSessionImpl.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698