Chromium Code Reviews| Index: media/audio/audio_input_device.cc |
| diff --git a/media/audio/audio_input_device.cc b/media/audio/audio_input_device.cc |
| index 66966381cdcc46ab9f264d3ac2db7ad854bf4d90..aac0808e20b3798e523c25b5dcf388d6260009d8 100644 |
| --- a/media/audio/audio_input_device.cc |
| +++ b/media/audio/audio_input_device.cc |
| @@ -225,6 +225,11 @@ void AudioInputDevice::OnError() { |
| } |
| } |
| +void AudioInputDevice::OnMuted(bool is_muted) { |
| + DCHECK(task_runner()->BelongsToCurrentThread()); |
|
Max Morin
2017/06/02 09:56:05
I think you have to check |state_| here to ensure
ossu-chromium
2017/06/02 10:48:00
Oh, you're probably right. I'll look into it.
|
| + callback_->OnCaptureMuted(is_muted); |
| +} |
| + |
| void AudioInputDevice::OnIPCClosed() { |
| DCHECK(task_runner()->BelongsToCurrentThread()); |
| state_ = IPC_CLOSED; |