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

Unified Diff: extensions/common/permissions/permission_message.h

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
Index: extensions/common/permissions/permission_message.h
diff --git a/extensions/common/permissions/permission_message.h b/extensions/common/permissions/permission_message.h
index fa65ab259e15cd326e9495964c4db6e7a08bea9a..04570bcbec92b10ac39efbf085b5acef34fd5f45 100644
--- a/extensions/common/permissions/permission_message.h
+++ b/extensions/common/permissions/permission_message.h
@@ -104,8 +104,8 @@ class PermissionMessage {
// "ExtensionPermission2" enum in tools/metrics/histograms/histograms.xml.
kEnumBoundary,
};
- COMPILE_ASSERT(PermissionMessage::kNone > PermissionMessage::kUnknown,
- kNone_not_greater_than_kUnknown);
+ static_assert(PermissionMessage::kNone > PermissionMessage::kUnknown,
+ "kNone should not greater than kUnknown");
// Creates the corresponding permission message.
PermissionMessage(ID id, const base::string16& message);
« no previous file with comments | « extensions/common/permissions/base_set_operators.h ('k') | extensions/common/permissions/permission_message_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698