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

Unified Diff: ui/native_theme/native_theme_aura.cc

Issue 828633002: replace COMPILE_ASSERT with static_assert in ui/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix for rebase Created 5 years, 11 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/gesture_detection/velocity_tracker.cc ('k') | ui/native_theme/native_theme_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/native_theme/native_theme_aura.cc
diff --git a/ui/native_theme/native_theme_aura.cc b/ui/native_theme/native_theme_aura.cc
index fc8a9063c3097ae869bf353b06e83a46e260ee3b..a3cbc2fb31c6049fbd1493f969fabf0c48f91077 100644
--- a/ui/native_theme/native_theme_aura.cc
+++ b/ui/native_theme/native_theme_aura.cc
@@ -87,10 +87,10 @@ NativeThemeAura::NativeThemeAura() {
#endif
// Images and alphas declarations assume the following order.
- COMPILE_ASSERT(kDisabled == 0, states_unexpectedly_changed);
- COMPILE_ASSERT(kHovered == 1, states_unexpectedly_changed);
- COMPILE_ASSERT(kNormal == 2, states_unexpectedly_changed);
- COMPILE_ASSERT(kPressed == 3, states_unexpectedly_changed);
+ static_assert(kDisabled == 0, "states unexpectedly changed");
+ static_assert(kHovered == 1, "states unexpectedly changed");
+ static_assert(kNormal == 2, "states unexpectedly changed");
+ static_assert(kPressed == 3, "states unexpectedly changed");
}
NativeThemeAura::~NativeThemeAura() {
« no previous file with comments | « ui/events/gesture_detection/velocity_tracker.cc ('k') | ui/native_theme/native_theme_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698