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

Unified Diff: media/audio/audio_manager_base.cc

Issue 2423563003: Remove usage of FOR_EACH_OBSERVER macro in media/ (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/audio_manager_base.cc
diff --git a/media/audio/audio_manager_base.cc b/media/audio/audio_manager_base.cc
index 7d3c946ab179221bd42e7525e0ecf3cc77b5c8b3..944156c66c6f8e9eb1e561ea1896b01a9c05a083 100644
--- a/media/audio/audio_manager_base.cc
+++ b/media/audio/audio_manager_base.cc
@@ -320,7 +320,8 @@ void AudioManagerBase::RemoveOutputDeviceChangeListener(
void AudioManagerBase::NotifyAllOutputDeviceChangeListeners() {
DCHECK(GetTaskRunner()->BelongsToCurrentThread());
DVLOG(1) << "Firing OnDeviceChange() notifications.";
- FOR_EACH_OBSERVER(AudioDeviceListener, output_listeners_, OnDeviceChange());
+ for (auto& observer : output_listeners_)
+ observer.OnDeviceChange();
}
AudioParameters AudioManagerBase::GetDefaultOutputStreamParameters() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698