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

Unified Diff: third_party/WebKit/Source/core/testing/Internals.cpp

Issue 2890633003: [Blink,RemotePlayback] Use PresentationController for availability (Closed)
Patch Set: Limited to Blink only, rebased 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: third_party/WebKit/Source/core/testing/Internals.cpp
diff --git a/third_party/WebKit/Source/core/testing/Internals.cpp b/third_party/WebKit/Source/core/testing/Internals.cpp
index 74b38a460e8554b99ce89bff02e1e8b2cbff684a..028f3e91c06a67fcc4507c51f54f8eccb0a14afb 100644
--- a/third_party/WebKit/Source/core/testing/Internals.cpp
+++ b/third_party/WebKit/Source/core/testing/Internals.cpp
@@ -154,6 +154,7 @@
#include "public/platform/WebGraphicsContext3DProvider.h"
#include "public/platform/WebLayer.h"
#include "public/platform/modules/remoteplayback/WebRemotePlaybackAvailability.h"
+#include "public/platform/modules/remoteplayback/WebRemotePlaybackClient.h"
#include "v8/include/v8.h"
namespace blink {
@@ -2327,7 +2328,8 @@ void Internals::mediaPlayerRemoteRouteAvailabilityChanged(
HTMLMediaElement* media_element,
bool available) {
DCHECK(media_element);
- media_element->RemoteRouteAvailabilityChanged(
+ DCHECK(media_element->remote_playback_client_);
+ media_element->remote_playback_client_->AvailabilityChanged(
available ? WebRemotePlaybackAvailability::kDeviceAvailable
: WebRemotePlaybackAvailability::kSourceNotSupported);
}

Powered by Google App Engine
This is Rietveld 408576698