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 982f09ed13f8110d80740552e897a1500cb42499..0b1935edeab4acbcd705143644b88fb57ac484cc 100644 |
--- a/third_party/WebKit/Source/modules/webmidi/NavigatorWebMIDI.cpp |
+++ b/third_party/WebKit/Source/modules/webmidi/NavigatorWebMIDI.cpp |
@@ -36,6 +36,7 @@ |
#include "core/dom/Document.h" |
#include "core/frame/LocalFrame.h" |
#include "core/frame/Navigator.h" |
+#include "core/frame/UseCounter.h" |
#include "modules/webmidi/MIDIAccessInitializer.h" |
#include "modules/webmidi/MIDIOptions.h" |
@@ -82,6 +83,7 @@ ScriptPromise NavigatorWebMIDI::requestMIDIAccess(ScriptState* scriptState, cons |
return ScriptPromise::rejectWithDOMException(scriptState, DOMException::create(AbortError, "The frame is not working.")); |
} |
+ UseCounter::countCrossOriginIframe(*frame()->document(), UseCounter::RequestMIDIAccessIframe); |
return MIDIAccessInitializer::start(scriptState, options); |
} |