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

Unified Diff: third_party/WebKit/Source/modules/mediastream/URLMediaStream.cpp

Issue 2656343002: Replace [CallWith=ExecutionContext] with [CallWith=ScriptState] (Closed)
Patch Set: Few more Created 3 years, 11 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/mediastream/URLMediaStream.cpp
diff --git a/third_party/WebKit/Source/modules/mediastream/URLMediaStream.cpp b/third_party/WebKit/Source/modules/mediastream/URLMediaStream.cpp
index 552239d0b13ef13a11ef7b7b00feac95fbd4c7e7..3276aac9272ee21a4f67605556cb1c71214a82d4 100644
--- a/third_party/WebKit/Source/modules/mediastream/URLMediaStream.cpp
+++ b/third_party/WebKit/Source/modules/mediastream/URLMediaStream.cpp
@@ -36,11 +36,12 @@
namespace blink {
-String URLMediaStream::createObjectURL(ExecutionContext* executionContext,
+String URLMediaStream::createObjectURL(ScriptState* scriptState,
MediaStream* stream) {
// Since WebWorkers cannot obtain Stream objects, we should be on the main
// thread.
DCHECK(isMainThread());
+ ExecutionContext* executionContext = scriptState->getExecutionContext();
DCHECK(executionContext);
DCHECK(stream);

Powered by Google App Engine
This is Rietveld 408576698