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

Unified Diff: sandbox/win/src/process_mitigations.cc

Issue 614813002: Cleanup sandbox/ in advance of re-enabling some MSVC warnings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comments Created 6 years, 3 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 | « sandbox/win/src/policy_opcodes_unittest.cc ('k') | sandbox/win/src/process_mitigations_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sandbox/win/src/process_mitigations.cc
diff --git a/sandbox/win/src/process_mitigations.cc b/sandbox/win/src/process_mitigations.cc
index 5e242f3abfa1df66c9fd69574208f87ce5bdf09c..80e428483052b606211c977572ea57bb13d9255b 100644
--- a/sandbox/win/src/process_mitigations.cc
+++ b/sandbox/win/src/process_mitigations.cc
@@ -79,10 +79,10 @@ bool ApplyProcessMitigationsToCurrentProcess(MitigationFlags flags) {
} else {
// We're on XP sp2, so use the less standard approach.
// For reference: http://www.uninformed.org/?v=2&a=4
- const int MEM_EXECUTE_OPTION_ENABLE = 1;
- const int MEM_EXECUTE_OPTION_DISABLE = 2;
- const int MEM_EXECUTE_OPTION_ATL7_THUNK_EMULATION = 4;
- const int MEM_EXECUTE_OPTION_PERMANENT = 8;
+ static const int MEM_EXECUTE_OPTION_ENABLE = 1;
+ static const int MEM_EXECUTE_OPTION_DISABLE = 2;
+ static const int MEM_EXECUTE_OPTION_ATL7_THUNK_EMULATION = 4;
+ static const int MEM_EXECUTE_OPTION_PERMANENT = 8;
NtSetInformationProcessFunction set_information_process = NULL;
ResolveNTFunctionPtr("NtSetInformationProcess",
« no previous file with comments | « sandbox/win/src/policy_opcodes_unittest.cc ('k') | sandbox/win/src/process_mitigations_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698