| 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 2065ee40a922ee66f691714e8cc5daa1a63af39a..e67f2e32fdefb01bf58c03e64044299c22c1f060 100644
|
| --- a/third_party/WebKit/Source/modules/webmidi/NavigatorWebMIDI.cpp
|
| +++ b/third_party/WebKit/Source/modules/webmidi/NavigatorWebMIDI.cpp
|
| @@ -79,9 +79,14 @@ ScriptPromise NavigatorWebMIDI::requestMIDIAccess(ScriptState* script_state,
|
| DOMException::Create(kAbortError, "The frame is not working."));
|
| }
|
|
|
| - UseCounter::CountCrossOriginIframe(
|
| - *ToDocument(ExecutionContext::From(script_state)),
|
| - UseCounter::kRequestMIDIAccessIframe);
|
| + Document& document = *ToDocument(ExecutionContext::From(script_state));
|
| + if (options.hasSysex() && options.sysex()) {
|
| + UseCounter::Count(document, UseCounter::kRequestMIDIAccessWithSysExOption);
|
| + UseCounter::CountCrossOriginIframe(
|
| + document, UseCounter::kRequestMIDIAccessIframeWithSysExOption);
|
| + }
|
| + UseCounter::CountCrossOriginIframe(document,
|
| + UseCounter::kRequestMIDIAccessIframe);
|
| return MIDIAccessInitializer::Start(script_state, options);
|
| }
|
|
|
|
|