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

Unified Diff: ui/display/fake_display_delegate.cc

Issue 2422073002: Reduce FOR_EACH_OBSERVER usage in ui/ (Closed)
Patch Set: remove space 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 | « ui/display/display_list.cc ('k') | ui/events/devices/device_data_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..2f1503d4b96be938c86806a04706c5f1b425a736 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 (ui::NativeDisplayObserver& observer : observers_)
+ observer.OnConfigurationChanged();
}
} // namespace display
« no previous file with comments | « ui/display/display_list.cc ('k') | ui/events/devices/device_data_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698