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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/media/router/cast/CastSessionImpl.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 | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/media/ui/MediaSessionTabHelper.java » ('j') | 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/router/cast/CastSessionImpl.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/media/router/cast/CastSessionImpl.java b/chrome/android/java/src/org/chromium/chrome/browser/media/router/cast/CastSessionImpl.java
index 01aff0f520427a5f498a5d3a266d9f428d2d7e83..cef866a6d2c32bf2e23608ca74948cfe1e29abd0 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/media/router/cast/CastSessionImpl.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/media/router/cast/CastSessionImpl.java
@@ -142,8 +142,10 @@ public class CastSessionImpl implements MediaNotificationListener, CastSession {
}
Intent contentIntent = Tab.createBringTabToFrontIntent(tabId);
- contentIntent.putExtra(MediaNotificationUma.INTENT_EXTRA_NAME,
- MediaNotificationUma.SOURCE_PRESENTATION);
+ if (contentIntent != null) {
+ contentIntent.putExtra(MediaNotificationUma.INTENT_EXTRA_NAME,
+ MediaNotificationUma.SOURCE_PRESENTATION);
+ }
mNotificationBuilder = new MediaNotificationInfo.Builder()
.setPaused(false)
.setOrigin(origin)
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/media/ui/MediaSessionTabHelper.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698