| Index: third_party/WebKit/Source/modules/vr/NavigatorVR.cpp
|
| diff --git a/third_party/WebKit/Source/modules/vr/NavigatorVR.cpp b/third_party/WebKit/Source/modules/vr/NavigatorVR.cpp
|
| index 2dc43c92d75faf1b2bc9bdf27387f3dd5a3b342a..13273bb0af5345638596c5b753e24fb4dbbf301f 100644
|
| --- a/third_party/WebKit/Source/modules/vr/NavigatorVR.cpp
|
| +++ b/third_party/WebKit/Source/modules/vr/NavigatorVR.cpp
|
| @@ -8,6 +8,7 @@
|
| #include "core/dom/DOMException.h"
|
| #include "core/dom/Document.h"
|
| #include "core/dom/ExceptionCode.h"
|
| +#include "core/dom/ExecutionContext.h"
|
| #include "core/dom/Fullscreen.h"
|
| #include "core/frame/LocalDOMWindow.h"
|
| #include "core/frame/LocalFrame.h"
|
| @@ -73,7 +74,7 @@
|
| }
|
|
|
| UseCounter::Count(*GetDocument(), UseCounter::kVRGetDisplays);
|
| - ExecutionContext* execution_context = script_state->GetExecutionContext();
|
| + ExecutionContext* execution_context = ExecutionContext::From(script_state);
|
| if (!execution_context->IsSecureContext())
|
| UseCounter::Count(*GetDocument(), UseCounter::kVRGetDisplaysInsecureOrigin);
|
|
|
|
|