diff options
author | mostynb <mostynb@opera.com> | 2014-12-22 13:14:46 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-12-22 21:15:32 +0000 |
commit | 470748ce474f8fce7a566eb570021273c88d04c0 (patch) | |
tree | 6955cf4690aa6dc87f4f84d99fcb0a665d2de5aa /components/user_manager | |
parent | d054c43b09a963b2c138b8f7f4cb2c26a2056eb3 (diff) | |
download | chromium_src-470748ce474f8fce7a566eb570021273c88d04c0.zip chromium_src-470748ce474f8fce7a566eb570021273c88d04c0.tar.gz chromium_src-470748ce474f8fce7a566eb570021273c88d04c0.tar.bz2 |
replace COMPILE_ASSERT with static_assert in components/
BUG=442514
Review URL: https://codereview.chromium.org/794683005
Cr-Commit-Position: refs/heads/master@{#309464}
Diffstat (limited to 'components/user_manager')
-rw-r--r-- | components/user_manager/user.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/components/user_manager/user.cc b/components/user_manager/user.cc index ca8c14b..ebef979 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: |