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

Unified Diff: components/nacl/loader/nonsfi/nonsfi_sandbox.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/nacl/loader/nacl_ipc_adapter.cc ('k') | components/navigation_metrics/navigation_metrics.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/nacl/loader/nonsfi/nonsfi_sandbox.cc
diff --git a/components/nacl/loader/nonsfi/nonsfi_sandbox.cc b/components/nacl/loader/nonsfi/nonsfi_sandbox.cc
index fbc2b5d2c58d82c7ab01f50aa56035faacb136b3..80cbfd32f7d8244ceb8c618dc78da19ac1d1fa29 100644
--- a/components/nacl/loader/nonsfi/nonsfi_sandbox.cc
+++ b/components/nacl/loader/nonsfi/nonsfi_sandbox.cc
@@ -132,7 +132,7 @@ ResultExpr RestrictMmap() {
#if defined(__x86_64__) || defined(__arm__)
ResultExpr RestrictSocketpair() {
// Only allow AF_UNIX, PF_UNIX. Crash if anything else is seen.
- COMPILE_ASSERT(AF_UNIX == PF_UNIX, af_unix_pf_unix_different);
+ static_assert(AF_UNIX == PF_UNIX, "AF_UNIX must equal PF_UNIX.");
const Arg<int> domain(0);
return If(domain == AF_UNIX, Allow()).Else(CrashSIGSYS());
}
« no previous file with comments | « components/nacl/loader/nacl_ipc_adapter.cc ('k') | components/navigation_metrics/navigation_metrics.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698