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

Unified Diff: ui/display/fake_display_delegate.cc

Issue 2422073002: Reduce FOR_EACH_OBSERVER usage in ui/ (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
Index: ui/display/fake_display_delegate.cc
diff --git a/ui/display/fake_display_delegate.cc b/ui/display/fake_display_delegate.cc
index ccfc64d4e6aad99070c1a7c2849a86e93823d9c8..215b9a3916c618742949988cbe96e1fe5a289b63 100644
--- a/ui/display/fake_display_delegate.cc
+++ b/ui/display/fake_display_delegate.cc
@@ -228,8 +228,8 @@ void FakeDisplayDelegate::OnConfigurationChanged() {
if (!initialized_)
return;
- FOR_EACH_OBSERVER(ui::NativeDisplayObserver, observers_,
- OnConfigurationChanged());
+ for (auto& observer : observers_)
+ observer.OnConfigurationChanged();
}
} // namespace display

Powered by Google App Engine
This is Rietveld 408576698