| Index: third_party/WebKit/Source/modules/webmidi/NavigatorWebMIDI.cpp
|
| diff --git a/third_party/WebKit/Source/modules/webmidi/NavigatorWebMIDI.cpp b/third_party/WebKit/Source/modules/webmidi/NavigatorWebMIDI.cpp
|
| index 2a6c69c922f144f9cb90bf6a5190006217afdeb0..2065ee40a922ee66f691714e8cc5daa1a63af39a 100644
|
| --- a/third_party/WebKit/Source/modules/webmidi/NavigatorWebMIDI.cpp
|
| +++ b/third_party/WebKit/Source/modules/webmidi/NavigatorWebMIDI.cpp
|
| @@ -34,6 +34,7 @@
|
| #include "bindings/core/v8/ScriptPromiseResolver.h"
|
| #include "core/dom/DOMException.h"
|
| #include "core/dom/Document.h"
|
| +#include "core/dom/ExecutionContext.h"
|
| #include "core/frame/LocalFrame.h"
|
| #include "core/frame/Navigator.h"
|
| #include "core/frame/UseCounter.h"
|
| @@ -79,7 +80,7 @@
|
| }
|
|
|
| UseCounter::CountCrossOriginIframe(
|
| - *ToDocument(script_state->GetExecutionContext()),
|
| + *ToDocument(ExecutionContext::From(script_state)),
|
| UseCounter::kRequestMIDIAccessIframe);
|
| return MIDIAccessInitializer::Start(script_state, options);
|
| }
|
|
|