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

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

Issue 2484973005: [Blink, RemotePlaybackAPI] Create WebRemotePlaybackClient in HTMLMediaElement ctor to avoid lazy in… (Closed)
Patch Set: Fixed compile for EmptyClients.cpp 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: third_party/WebKit/Source/modules/remoteplayback/RemotePlayback.cpp
diff --git a/third_party/WebKit/Source/modules/remoteplayback/RemotePlayback.cpp b/third_party/WebKit/Source/modules/remoteplayback/RemotePlayback.cpp
index 86c69e2d965117b42174b68a91101bc8e12f2349..79dd9b3e792e2b1305cd1f12ead36c57b1675131 100644
--- a/third_party/WebKit/Source/modules/remoteplayback/RemotePlayback.cpp
+++ b/third_party/WebKit/Source/modules/remoteplayback/RemotePlayback.cpp
@@ -45,10 +45,7 @@ RemotePlayback* RemotePlayback::create(ScriptState* scriptState,
DCHECK(element.document().frame());
DCHECK(scriptState);
- RemotePlayback* remotePlayback = new RemotePlayback(scriptState, element);
- element.setRemotePlaybackClient(remotePlayback);
-
- return remotePlayback;
+ return new RemotePlayback(scriptState, element);
}
RemotePlayback::RemotePlayback(ScriptState* scriptState,

Powered by Google App Engine
This is Rietveld 408576698