summaryrefslogtreecommitdiffstats
path: root/ui/native_theme/native_theme_win.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ui/native_theme/native_theme_win.cc')
-rw-r--r--ui/native_theme/native_theme_win.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/ui/native_theme/native_theme_win.cc b/ui/native_theme/native_theme_win.cc
index cf05c89..9183476 100644
--- a/ui/native_theme/native_theme_win.cc
+++ b/ui/native_theme/native_theme_win.cc
@@ -356,10 +356,8 @@ void NativeThemeWin::OnSysColorChange() {
}
void NativeThemeWin::UpdateSystemColors() {
- for (int i = 0; i < arraysize(kSystemColors); ++i) {
- system_colors_[kSystemColors[i]] =
- color_utils::GetSysSkColor(kSystemColors[i]);
- }
+ for (int kSystemColor : kSystemColors)
+ system_colors_[kSystemColor] = color_utils::GetSysSkColor(kSystemColor);
}
void NativeThemeWin::PaintDirect(SkCanvas* canvas,