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

Unified Diff: chromecast/graphics/cast_vsync_settings.cc

Issue 2422853002: Remove usage of FOR_EACH_OBSERVER macro in chromecast (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: chromecast/graphics/cast_vsync_settings.cc
diff --git a/chromecast/graphics/cast_vsync_settings.cc b/chromecast/graphics/cast_vsync_settings.cc
index 5c2a9517946b49efc7008b4b3ed7c2d1016ae600..dd908a5807173f93eec3744f42d3cf327374f4f9 100644
--- a/chromecast/graphics/cast_vsync_settings.cc
+++ b/chromecast/graphics/cast_vsync_settings.cc
@@ -22,8 +22,8 @@ void CastVSyncSettings::SetVSyncInterval(base::TimeDelta interval) {
if (interval_ == interval)
return;
interval_ = interval;
- FOR_EACH_OBSERVER(Observer, observers_,
- OnVSyncIntervalChanged(interval));
+ for (auto& observer : observers_)
+ observer.OnVSyncIntervalChanged(interval);
}
void CastVSyncSettings::AddObserver(Observer* observer) {
« 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