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

Unified Diff: ui/native_theme/native_theme_win.cc

Issue 1507413003: clang/win: Let some chromium_code targets build with -Wextra. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: content_browsertests Created 5 years 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/base/ime/remote_input_method_win.cc ('k') | ui/views/win/hwnd_message_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/native_theme/native_theme_win.cc
diff --git a/ui/native_theme/native_theme_win.cc b/ui/native_theme/native_theme_win.cc
index cf05c89fc34212332360b5ce99b207663747c39d..91834768ca11e4528cb6a60c72c943951c4a227c 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,
« no previous file with comments | « ui/base/ime/remote_input_method_win.cc ('k') | ui/views/win/hwnd_message_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698