Index: third_party/WebKit/Source/modules/vr/VRDisplay.cpp |
diff --git a/third_party/WebKit/Source/modules/vr/VRDisplay.cpp b/third_party/WebKit/Source/modules/vr/VRDisplay.cpp |
index 553622a0dfa064f16522cfd8694dc7834f1abb48..b95812fe090b2a5925a80d374ba39a1620f31ee9 100644 |
--- a/third_party/WebKit/Source/modules/vr/VRDisplay.cpp |
+++ b/third_party/WebKit/Source/modules/vr/VRDisplay.cpp |
@@ -36,7 +36,6 @@ |
#include "public/platform/Platform.h" |
#include <array> |
-#include "core/dom/ExecutionContext.h" |
namespace blink { |
@@ -178,7 +177,7 @@ void ReportPresentationResult(PresentationResult result) { |
ScriptPromise VRDisplay::requestPresent(ScriptState* script_state, |
const HeapVector<VRLayer>& layers) { |
- ExecutionContext* execution_context = ExecutionContext::From(script_state); |
+ ExecutionContext* execution_context = script_state->GetExecutionContext(); |
UseCounter::Count(execution_context, UseCounter::kVRRequestPresent); |
if (!execution_context->IsSecureContext()) { |
UseCounter::Count(execution_context, |
@@ -279,7 +278,7 @@ ScriptPromise VRDisplay::requestPresent(ScriptState* script_state, |
pending_present_resolvers_.push_back(resolver); |
} else if (first_present) { |
bool secure_context = |
- ExecutionContext::From(script_state)->IsSecureContext(); |
+ script_state->GetExecutionContext()->IsSecureContext(); |
if (!display_) { |
ForceExitPresent(); |
DOMException* exception = DOMException::Create( |