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

Unified Diff: chromeos/audio/audio_devices_pref_handler_impl.cc

Issue 2413963002: Replace FOR_EACH_OBSERVER in chromeos/ with range-based for (Closed)
Patch Set: Run the script again with '/mg' 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 | chromeos/audio/cras_audio_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/audio/audio_devices_pref_handler_impl.cc
diff --git a/chromeos/audio/audio_devices_pref_handler_impl.cc b/chromeos/audio/audio_devices_pref_handler_impl.cc
index 3a25f56c7d8d9cceb79578a4d25893971d17a335..3024bfd4c520d9ca7ba89f07fe32136ecce6cff5 100644
--- a/chromeos/audio/audio_devices_pref_handler_impl.cc
+++ b/chromeos/audio/audio_devices_pref_handler_impl.cc
@@ -244,9 +244,8 @@ void AudioDevicesPrefHandlerImpl::MigrateDeviceVolumeSettings(
}
void AudioDevicesPrefHandlerImpl::NotifyAudioPolicyChange() {
- FOR_EACH_OBSERVER(AudioPrefObserver,
- observers_,
- OnAudioPolicyPrefChanged());
+ for (auto& observer : observers_)
+ observer.OnAudioPolicyPrefChanged();
}
// static
« no previous file with comments | « no previous file | chromeos/audio/cras_audio_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698