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

Unified Diff: blimp/engine/app/ui/blimp_screen.cc

Issue 2425493002: Remove usage of FOR_EACH_OBSERVER macro in blimp (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 | « blimp/engine/app/settings_manager.cc ('k') | blimp/net/blimp_connection.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/engine/app/ui/blimp_screen.cc
diff --git a/blimp/engine/app/ui/blimp_screen.cc b/blimp/engine/app/ui/blimp_screen.cc
index c10396af01298a574225b75bc9a1aa82ee9f769d..e5d33adbdaad906206261d24c031441e1596c6b5 100644
--- a/blimp/engine/app/ui/blimp_screen.cc
+++ b/blimp/engine/app/ui/blimp_screen.cc
@@ -39,8 +39,8 @@ void BlimpScreen::UpdateDisplayScaleAndSize(float scale,
display_.SetScaleAndBounds(scale, gfx::Rect(size));
- FOR_EACH_OBSERVER(display::DisplayObserver, observers_,
- OnDisplayMetricsChanged(display_, metrics));
+ for (auto& observer : observers_)
+ observer.OnDisplayMetricsChanged(display_, metrics);
}
gfx::Point BlimpScreen::GetCursorScreenPoint() {
« no previous file with comments | « blimp/engine/app/settings_manager.cc ('k') | blimp/net/blimp_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698