| Index: third_party/WebKit/Source/modules/webmidi/MIDIAccess.cpp
|
| diff --git a/third_party/WebKit/Source/modules/webmidi/MIDIAccess.cpp b/third_party/WebKit/Source/modules/webmidi/MIDIAccess.cpp
|
| index 7114293d871718dfddd3fc777f61bfedd00db624..8c002b8a0263c483718f227ab0bda1f27f313d3a 100644
|
| --- a/third_party/WebKit/Source/modules/webmidi/MIDIAccess.cpp
|
| +++ b/third_party/WebKit/Source/modules/webmidi/MIDIAccess.cpp
|
| @@ -75,11 +75,12 @@ MIDIAccess::MIDIAccess(
|
| const MIDIAccessInitializer::PortDescriptor& port = ports[i];
|
| if (port.type == MIDIPort::TypeInput) {
|
| m_inputs.append(MIDIInput::create(this, port.id, port.manufacturer,
|
| - port.name, port.version, port.state));
|
| + port.name, port.version,
|
| + ToDeviceState(port.state)));
|
| } else {
|
| - m_outputs.append(MIDIOutput::create(this, m_outputs.size(), port.id,
|
| - port.manufacturer, port.name,
|
| - port.version, port.state));
|
| + m_outputs.append(MIDIOutput::create(
|
| + this, m_outputs.size(), port.id, port.manufacturer, port.name,
|
| + port.version, ToDeviceState(port.state)));
|
| }
|
| }
|
| }
|
|
|