Index: sandbox/win/src/process_mitigations_test.cc |
diff --git a/sandbox/win/src/process_mitigations_test.cc b/sandbox/win/src/process_mitigations_test.cc |
index 5bcd4917bb736ded4486adacfccd1580f2707e1e..78f730bc385bfda75dd9e49a549e34979de535b8 100644 |
--- a/sandbox/win/src/process_mitigations_test.cc |
+++ b/sandbox/win/src/process_mitigations_test.cc |
@@ -39,6 +39,7 @@ bool CheckWin8DepPolicy() { |
return policy.Enable && policy.Permanent; |
} |
+#if defined(NDEBUG) |
bool CheckWin8AslrPolicy() { |
PROCESS_MITIGATION_ASLR_POLICY policy = {}; |
if (!get_process_mitigation_policy(::GetCurrentProcess(), ProcessASLRPolicy, |
@@ -47,6 +48,7 @@ bool CheckWin8AslrPolicy() { |
} |
return policy.EnableForceRelocateImages && policy.DisallowStrippedImages; |
} |
+#endif // defined(NDEBUG) |
bool CheckWin8StrictHandlePolicy() { |
PROCESS_MITIGATION_STRICT_HANDLE_CHECK_POLICY policy = {}; |