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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/media/router/cast/CastRouteController.java

Issue 1491943002: Refactoring media notification (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: added two MediaSessionBrowserTests to test MediaSession.Stop() Created 5 years 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/media/router/cast/CastRouteController.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/media/router/cast/CastRouteController.java b/chrome/android/java/src/org/chromium/chrome/browser/media/router/cast/CastRouteController.java
index 46d7967cb0ec5003e003df80af6e52e8e0904d6e..f2c934e6eb5db2e0c227551085861a30292b32d3 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/media/router/cast/CastRouteController.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/media/router/cast/CastRouteController.java
@@ -239,7 +239,7 @@ public class CastRouteController implements RouteController, MediaNotificationLi
} else {
mNotificationBuilder.setActions(MediaNotificationInfo.ACTION_STOP);
}
- MediaNotificationManager.show(context, mNotificationBuilder);
+ MediaNotificationManager.show(context, mNotificationBuilder.build());
}
});
}
@@ -256,7 +256,7 @@ public class CastRouteController implements RouteController, MediaNotificationLi
.setActions(MediaNotificationInfo.ACTION_STOP)
.setId(R.id.presentation_notification)
.setListener(this);
- MediaNotificationManager.show(context, mNotificationBuilder);
+ MediaNotificationManager.show(context, mNotificationBuilder.build());
synchronized (INIT_LOCK) {
if (sMediaOverloadedMessageTypes == null) {

Powered by Google App Engine
This is Rietveld 408576698