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 739941ae231486d87e309cc20e0a0c73d4f6ea8c..adb9ad2cc3d2360440575234b41558b152c77441 100644 |
--- a/sandbox/win/src/sandbox_policy_base.cc |
+++ b/sandbox/win/src/sandbox_policy_base.cc |
@@ -135,7 +135,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)); |
} |
@@ -607,6 +608,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_); |