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() { |