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

Unified Diff: third_party/WebKit/Source/modules/remoteplayback/HTMLMediaElementRemotePlayback.cpp

Issue 2415723002: [Blink, RemotePlayback] watchAvailability() implementation. (Closed)
Patch Set: Added layout test for callback gc Created 4 years, 2 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/modules/remoteplayback/HTMLMediaElementRemotePlayback.cpp
diff --git a/third_party/WebKit/Source/modules/remoteplayback/HTMLMediaElementRemotePlayback.cpp b/third_party/WebKit/Source/modules/remoteplayback/HTMLMediaElementRemotePlayback.cpp
index a3c07b1e05fb4a6641cfc270028ac2d8d1787ebd..40ad55bddfe176f13268f245cf57cfaf4a3f1c94 100644
--- a/third_party/WebKit/Source/modules/remoteplayback/HTMLMediaElementRemotePlayback.cpp
+++ b/third_party/WebKit/Source/modules/remoteplayback/HTMLMediaElementRemotePlayback.cpp
@@ -44,6 +44,7 @@ HTMLMediaElementRemotePlayback& HTMLMediaElementRemotePlayback::from(
// static
RemotePlayback* HTMLMediaElementRemotePlayback::remote(
+ ScriptState* scriptState,
HTMLMediaElement& element) {
HTMLMediaElementRemotePlayback& self =
HTMLMediaElementRemotePlayback::from(element);
@@ -52,7 +53,7 @@ RemotePlayback* HTMLMediaElementRemotePlayback::remote(
return nullptr;
if (!self.m_remote)
- self.m_remote = RemotePlayback::create(element);
+ self.m_remote = RemotePlayback::create(scriptState, element);
return self.m_remote;
}

Powered by Google App Engine
This is Rietveld 408576698