| Index: media/midi/midi_manager.cc
|
| diff --git a/media/midi/midi_manager.cc b/media/midi/midi_manager.cc
|
| index 9157c73883fe33e940b329202d589f873f5176c4..308982d4edff72d047a44b8dcc22282bd32dbe31 100644
|
| --- a/media/midi/midi_manager.cc
|
| +++ b/media/midi/midi_manager.cc
|
| @@ -17,6 +17,7 @@ namespace midi {
|
| namespace {
|
|
|
| using Sample = base::HistogramBase::Sample;
|
| +using midi::mojom::PortState;
|
| using midi::mojom::Result;
|
|
|
| // If many users have more devices, this number will be increased.
|
| @@ -202,7 +203,7 @@ void MidiManager::AddOutputPort(const MidiPortInfo& info) {
|
| client->AddOutputPort(info);
|
| }
|
|
|
| -void MidiManager::SetInputPortState(uint32_t port_index, MidiPortState state) {
|
| +void MidiManager::SetInputPortState(uint32_t port_index, PortState state) {
|
| base::AutoLock auto_lock(lock_);
|
| DCHECK_LT(port_index, input_ports_.size());
|
| input_ports_[port_index].state = state;
|
| @@ -210,7 +211,7 @@ void MidiManager::SetInputPortState(uint32_t port_index, MidiPortState state) {
|
| client->SetInputPortState(port_index, state);
|
| }
|
|
|
| -void MidiManager::SetOutputPortState(uint32_t port_index, MidiPortState state) {
|
| +void MidiManager::SetOutputPortState(uint32_t port_index, PortState state) {
|
| base::AutoLock auto_lock(lock_);
|
| DCHECK_LT(port_index, output_ports_.size());
|
| output_ports_[port_index].state = state;
|
|
|