Index: sandbox/win/src/sandbox_policy_base.cc |
diff --git a/sandbox/win/src/sandbox_policy_base.cc b/sandbox/win/src/sandbox_policy_base.cc |
index a3af98d3bbbd01a85801c70f21e1c2de9df1e491..59b9c763a112c1ed71f55d74c04e2b5e77bead80 100644 |
--- a/sandbox/win/src/sandbox_policy_base.cc |
+++ b/sandbox/win/src/sandbox_policy_base.cc |
@@ -137,7 +137,8 @@ PolicyBase::PolicyBase() |
policy_maker_(NULL), |
policy_(NULL), |
lowbox_sid_(NULL), |
- lockdown_default_dacl_(false) { |
+ lockdown_default_dacl_(false), |
+ enable_opm_redirection_(false) { |
::InitializeCriticalSection(&lock_); |
dispatcher_.reset(new TopLevelDispatcher(this)); |
} |
@@ -663,6 +664,14 @@ HANDLE PolicyBase::GetStderrHandle() { |
return stderr_handle_; |
} |
+void PolicyBase::SetEnableOPMRedirection() { |
+ enable_opm_redirection_ = true; |
+} |
+ |
+bool PolicyBase::GetEnableOPMRedirection() { |
+ return enable_opm_redirection_; |
+} |
+ |
bool PolicyBase::SetupAllInterceptions(TargetProcess* target) { |
InterceptionManager manager(target, relaxed_interceptions_); |