Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Unified Diff: third_party/WebKit/Source/modules/webmidi/MIDIAccess.cpp

Issue 2487113002: Web MIDI: fix a regression of r430234 (Closed)
Patch Set: fix a bug that was discussed offline Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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)));
}
}
}

Powered by Google App Engine
This is Rietveld 408576698