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

Unified Diff: extensions/browser/api/declarative_webrequest/request_stage.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/api/cast_channel/logger.cc ('k') | extensions/browser/warning_set.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/api/declarative_webrequest/request_stage.cc
diff --git a/extensions/browser/api/declarative_webrequest/request_stage.cc b/extensions/browser/api/declarative_webrequest/request_stage.cc
index c49aab44dd90960234c57a68fc3fa7501b8e1f98..e58e8f359f34d08978e3ea833c468b0a49ef7166 100644
--- a/extensions/browser/api/declarative_webrequest/request_stage.cc
+++ b/extensions/browser/api/declarative_webrequest/request_stage.cc
@@ -17,7 +17,7 @@ const unsigned int kActiveStages = ON_BEFORE_REQUEST |
// |n| is a positive compile-time constant.
template <long unsigned int n>
struct HighestBit {
- COMPILE_ASSERT(n > 0, argument_is_not_a_positive_compile_time_constant);
+ static_assert(n > 0, "argument is not a positive compile time constant");
enum { VALUE = HighestBit<(n >> 1)>::VALUE << 1 };
};
template <>
« no previous file with comments | « extensions/browser/api/cast_channel/logger.cc ('k') | extensions/browser/warning_set.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698