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

Unified Diff: ui/gfx/sys_color_change_listener.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/events/platform/platform_event_source.cc ('k') | ui/gfx/win/singleton_hwnd.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/sys_color_change_listener.cc
diff --git a/ui/gfx/sys_color_change_listener.cc b/ui/gfx/sys_color_change_listener.cc
index 8c6cd04e7a2c28c347d92d81d4499b282edb6ddf..0c1f792811d8bf03e131738d89f57db2c956f34e 100644
--- a/ui/gfx/sys_color_change_listener.cc
+++ b/ui/gfx/sys_color_change_listener.cc
@@ -94,7 +94,8 @@ void SysColorChangeObserver::OnWndProc(HWND hwnd,
if (message == WM_SYSCOLORCHANGE ||
(message == WM_SETTINGCHANGE && wparam == SPI_SETHIGHCONTRAST)) {
UpdateInvertedColorScheme();
- FOR_EACH_OBSERVER(SysColorChangeListener, listeners_, OnSysColorChange());
+ for (SysColorChangeListener& observer : listeners_)
+ observer.OnSysColorChange();
}
}
« no previous file with comments | « ui/events/platform/platform_event_source.cc ('k') | ui/gfx/win/singleton_hwnd.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698