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

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

Issue 2815313002: Reland of Move ScriptState::GetExecutionContext (Part 5) (Closed)
Patch Set: 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 1885723ad2cc924ede59bb7f75acb16b7e8e527c..0306330525fa5d41b9fdb22e7207eabb0852003a 100644
--- a/third_party/WebKit/Source/modules/mediasource/URLMediaSource.cpp
+++ b/third_party/WebKit/Source/modules/mediasource/URLMediaSource.cpp
@@ -32,6 +32,7 @@
#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"
@@ -42,7 +43,7 @@
// Since WebWorkers cannot obtain MediaSource objects, we should be on the
// main thread.
DCHECK(IsMainThread());
- ExecutionContext* execution_context = script_state->GetExecutionContext();
+ ExecutionContext* execution_context = ExecutionContext::From(script_state);
DCHECK(execution_context);
DCHECK(source);

Powered by Google App Engine
This is Rietveld 408576698