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

Unified Diff: ui/native_theme/native_theme.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/keyboard/keyboard_controller.cc ('k') | ui/ozone/platform/drm/host/drm_gpu_platform_support_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/native_theme/native_theme.cc
diff --git a/ui/native_theme/native_theme.cc b/ui/native_theme/native_theme.cc
index e4911c97d01e7d68167409c9b96041240293faf7..966131853bd160120d4e072396943411ac3e45c7 100644
--- a/ui/native_theme/native_theme.cc
+++ b/ui/native_theme/native_theme.cc
@@ -35,8 +35,8 @@ void NativeTheme::RemoveObserver(NativeThemeObserver* observer) {
}
void NativeTheme::NotifyObservers() {
- FOR_EACH_OBSERVER(NativeThemeObserver, native_theme_observers_,
- OnNativeThemeUpdated(this));
+ for (NativeThemeObserver& observer : native_theme_observers_)
+ observer.OnNativeThemeUpdated(this);
}
NativeTheme::NativeTheme()
« no previous file with comments | « ui/keyboard/keyboard_controller.cc ('k') | ui/ozone/platform/drm/host/drm_gpu_platform_support_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698