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

Unified Diff: third_party/WebKit/Source/modules/mediasource/URLMediaSource.cpp

Issue 2821443002: Revert of Move ScriptState::GetExecutionContext (Part 5) (Closed)
Patch Set: Revert Created 3 years, 8 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/mediasource/URLMediaSource.cpp
diff --git a/third_party/WebKit/Source/modules/mediasource/URLMediaSource.cpp b/third_party/WebKit/Source/modules/mediasource/URLMediaSource.cpp
index 0306330525fa5d41b9fdb22e7207eabb0852003a..1885723ad2cc924ede59bb7f75acb16b7e8e527c 100644
--- a/third_party/WebKit/Source/modules/mediasource/URLMediaSource.cpp
+++ b/third_party/WebKit/Source/modules/mediasource/URLMediaSource.cpp
@@ -32,7 +32,6 @@
#include "bindings/core/v8/ScriptState.h"
#include "core/dom/DOMURL.h"
-#include "core/dom/ExecutionContext.h"
#include "core/frame/UseCounter.h"
#include "modules/mediasource/MediaSource.h"
@@ -43,7 +42,7 @@ String URLMediaSource::createObjectURL(ScriptState* script_state,
// Since WebWorkers cannot obtain MediaSource objects, we should be on the
// main thread.
DCHECK(IsMainThread());
- ExecutionContext* execution_context = ExecutionContext::From(script_state);
+ ExecutionContext* execution_context = script_state->GetExecutionContext();
DCHECK(execution_context);
DCHECK(source);

Powered by Google App Engine
This is Rietveld 408576698