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

Unified Diff: chrome/common/extensions/api/webstore/webstore_api_constants.cc

Issue 812503003: replace COMPILE_ASSERT with static_assert in chrome/common/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « chrome/common/crash_keys.cc ('k') | chrome/common/mac/launchd.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/api/webstore/webstore_api_constants.cc
diff --git a/chrome/common/extensions/api/webstore/webstore_api_constants.cc b/chrome/common/extensions/api/webstore/webstore_api_constants.cc
index 04cd62796fc8fa62920fd9801ae7dd2782d429bf..09b0b76d187ade5bb5e3ca972e8d29c94fcdbdd1 100644
--- a/chrome/common/extensions/api/webstore/webstore_api_constants.cc
+++ b/chrome/common/extensions/api/webstore/webstore_api_constants.cc
@@ -35,9 +35,9 @@ const char* const kInstallResultCodes[] = {
"launchInProgress",
};
-COMPILE_ASSERT(arraysize(kInstallResultCodes) ==
- webstore_install::RESULT_LAST + 1,
- must_keep_webstore_install_result_and_api_constants_in_sync);
+static_assert(arraysize(kInstallResultCodes) ==
+ webstore_install::RESULT_LAST + 1,
+ "kInstallResultCodes should equal RESULT_LAST + 1");
// The "downloading" stage begins when the installer starts downloading modules
// for the extension.
« no previous file with comments | « chrome/common/crash_keys.cc ('k') | chrome/common/mac/launchd.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698