summaryrefslogtreecommitdiffstats
path: root/media/base/audio_renderer_mixer.cc
diff options
context:
space:
mode:
Diffstat (limited to 'media/base/audio_renderer_mixer.cc')
-rw-r--r--media/base/audio_renderer_mixer.cc7
1 files changed, 2 insertions, 5 deletions
diff --git a/media/base/audio_renderer_mixer.cc b/media/base/audio_renderer_mixer.cc
index 2695651..112d7ef 100644
--- a/media/base/audio_renderer_mixer.cc
+++ b/media/base/audio_renderer_mixer.cc
@@ -94,11 +94,8 @@ int AudioRendererMixer::Render(AudioBus* audio_bus,
void AudioRendererMixer::OnRenderError() {
// Call each mixer input and signal an error.
base::AutoLock auto_lock(lock_);
- for (ErrorCallbackList::const_iterator it = error_callbacks_.begin();
- it != error_callbacks_.end();
- ++it) {
- it->Run();
- }
+ for (const auto& cb : error_callbacks_)
+ cb.Run();
}
} // namespace media