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

Unified Diff: media/base/audio_renderer_mixer.cc

Issue 602193003: Cleanup some audio classes with C++11 shine! (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 months 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: media/base/audio_renderer_mixer.cc
diff --git a/media/base/audio_renderer_mixer.cc b/media/base/audio_renderer_mixer.cc
index 26956519b96c67f10e09223bfd3e6e0d603ebadb..112d7ef8b7726ad4ecf379a99d58193ff761f0dd 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_)
wolenetz 2014/09/26 01:22:31 aside (I'm filing a crbug): rietveld's lint doesn'
+ cb.Run();
}
} // namespace media

Powered by Google App Engine
This is Rietveld 408576698