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

Unified Diff: components/user_manager/user.cc

Issue 794683005: replace COMPILE_ASSERT with static_assert in components/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: formatting fixup Created 6 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 | « components/translate/core/common/translate_metrics.cc ('k') | components/variations/entropy_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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:
« no previous file with comments | « components/translate/core/common/translate_metrics.cc ('k') | components/variations/entropy_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698