| Index: Source/modules/webmidi/NavigatorWebMIDI.cpp
|
| diff --git a/Source/modules/webmidi/NavigatorWebMIDI.cpp b/Source/modules/webmidi/NavigatorWebMIDI.cpp
|
| index daaa1c94e42acc38ce08f66f24acc80c2776e6fc..30a4068208c9e88c371cee3361f8a85fda92c29a 100644
|
| --- a/Source/modules/webmidi/NavigatorWebMIDI.cpp
|
| +++ b/Source/modules/webmidi/NavigatorWebMIDI.cpp
|
| @@ -66,12 +66,12 @@ NavigatorWebMIDI& NavigatorWebMIDI::from(Navigator& navigator)
|
| return *supplement;
|
| }
|
|
|
| -ScriptPromise NavigatorWebMIDI::requestMIDIAccess(ScriptState* scriptState, Navigator& navigator, const Dictionary& options)
|
| +ScriptPromise NavigatorWebMIDI::requestMIDIAccess(ScriptState* scriptState, Navigator& navigator, const MIDIOptions* options)
|
| {
|
| return NavigatorWebMIDI::from(navigator).requestMIDIAccess(scriptState, options);
|
| }
|
|
|
| -ScriptPromise NavigatorWebMIDI::requestMIDIAccess(ScriptState* scriptState, const Dictionary& options)
|
| +ScriptPromise NavigatorWebMIDI::requestMIDIAccess(ScriptState* scriptState, const MIDIOptions* options)
|
| {
|
| if (!frame() || frame()->document()->activeDOMObjectsAreStopped()) {
|
| RefPtr<ScriptPromiseResolver> resolver = ScriptPromiseResolver::create(scriptState);
|
| @@ -81,7 +81,7 @@ ScriptPromise NavigatorWebMIDI::requestMIDIAccess(ScriptState* scriptState, cons
|
| return promise;
|
| }
|
|
|
| - return MIDIAccessInitializer::start(scriptState, MIDIOptions(options));
|
| + return MIDIAccessInitializer::start(scriptState, options);
|
| }
|
|
|
| } // namespace blink
|
|
|