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

Unified Diff: chrome/browser/media/android/remote/remote_media_player_bridge.cc

Issue 2480003002: [RemotePlayback] Keep track of source compatibility and reject prompt() correspondingly (Closed)
Patch Set: Fixed the java enum comment Created 4 years, 1 month 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/browser/media/android/remote/remote_media_player_bridge.cc
diff --git a/chrome/browser/media/android/remote/remote_media_player_bridge.cc b/chrome/browser/media/android/remote/remote_media_player_bridge.cc
index 8a11cf5c344b3126c20fe7068ee155421dc4e4b1..2979d2432581a903447e2f62b929ff296b3c670b 100644
--- a/chrome/browser/media/android/remote/remote_media_player_bridge.cc
+++ b/chrome/browser/media/android/remote/remote_media_player_bridge.cc
@@ -18,6 +18,7 @@
#include "media/base/android/media_resource_getter.h"
#include "media/base/timestamp_constants.h"
#include "net/base/escape.h"
+#include "third_party/WebKit/public/platform/modules/remoteplayback/WebRemotePlaybackAvailability.h"
#include "third_party/skia/include/core/SkBitmap.h"
#include "ui/gfx/android/java_bitmap.h"
@@ -252,9 +253,11 @@ void RemoteMediaPlayerBridge::OnPlaybackFinished(
void RemoteMediaPlayerBridge::OnRouteAvailabilityChanged(
JNIEnv* env,
const JavaParamRef<jobject>& obj,
- jboolean available) {
+ int availability) {
static_cast<RemoteMediaPlayerManager *>(manager())->
- OnRouteAvailabilityChanged(player_id(), available);
+ OnRouteAvailabilityChanged(
+ player_id(),
+ static_cast<blink::WebRemotePlaybackAvailability>(availability));
}
// static

Powered by Google App Engine
This is Rietveld 408576698