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

Unified Diff: extensions/common/constants.cc

Issue 859993002: Using "static_assert" in lieu of "COMPILE_ASSERT" in extensions module (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 months 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 | « extensions/browser/warning_set.cc ('k') | extensions/common/permissions/base_set_operators.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/common/constants.cc
diff --git a/extensions/common/constants.cc b/extensions/common/constants.cc
index c9fe31c3a45fb29772c09eb99c23b5a0247e8ff1..284ad95178a38dc6e5227a82657c12c0e6418376 100644
--- a/extensions/common/constants.cc
+++ b/extensions/common/constants.cc
@@ -80,8 +80,8 @@ const IconRepresentationInfo kExtensionActionIconSizes[] = {
{ 2 * EXTENSION_ICON_ACTION, "38", ui::SCALE_FACTOR_200P }
};
-COMPILE_ASSERT(kNumExtensionActionIconSizes ==
- arraysize(kExtensionActionIconSizes),
- num_action_icon_sizes_must_be_in_sync_with_action_icon_sizes);
+static_assert(kNumExtensionActionIconSizes ==
+ arraysize(kExtensionActionIconSizes),
+ "num action icon sizes must be in sync with action icon sizes");
} // namespace extension_misc
« no previous file with comments | « extensions/browser/warning_set.cc ('k') | extensions/common/permissions/base_set_operators.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698