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); |
} |