Index: components/user_manager/user.cc |
diff --git a/components/user_manager/user.cc b/components/user_manager/user.cc |
index ca8c14b9745979b9c772b1e6e7fbc0925b538419..ebef979dc7edfd272b7e59dfc111de4dd3404db6 100644 |
--- a/components/user_manager/user.cc |
+++ b/components/user_manager/user.cc |
@@ -308,7 +308,8 @@ UserType PublicAccountUser::GetType() const { |
} |
bool User::has_gaia_account() const { |
- COMPILE_ASSERT(user_manager::NUM_USER_TYPES == 7, num_user_types_unexpected); |
+ static_assert(user_manager::NUM_USER_TYPES == 7, |
+ "NUM_USER_TYPES should equal 7"); |
switch (GetType()) { |
case user_manager::USER_TYPE_REGULAR: |
case user_manager::USER_TYPE_CHILD: |