| Index: third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp b/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
|
| index be3968b5e56dd5f10eacdd3546f0864afe956048..8da456fa48e3c9d72688c3ec15b23a0fa74c0947 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
|
| @@ -475,6 +475,12 @@ HTMLMediaElement::HTMLMediaElement(const QualifiedName& tagName,
|
| m_lockedPendingUserGesture = true;
|
| }
|
|
|
| + LocalFrame* frame = document.frame();
|
| + if (frame) {
|
| + m_remotePlaybackClient =
|
| + frame->loader().client()->createWebRemotePlaybackClient(*this);
|
| + }
|
| +
|
| setHasCustomStyleCallbacks();
|
| addElementToDocumentMap(this, &document);
|
|
|
| @@ -3939,11 +3945,6 @@ void HTMLMediaElement::updatePositionNotificationRegistration() {
|
| m_autoplayHelper->updatePositionNotificationRegistration();
|
| }
|
|
|
| -void HTMLMediaElement::setRemotePlaybackClient(
|
| - WebRemotePlaybackClient* client) {
|
| - m_remotePlaybackClient = client;
|
| -}
|
| -
|
| // TODO(liberato): remove once autoplay gesture override experiment concludes.
|
| void HTMLMediaElement::triggerAutoplayViewportCheckForTesting() {
|
| if (FrameView* view = document().view())
|
|
|