| 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 7b9262b079a58923cba919860ca5e54f0e43c3b1..8b754323e24ed408ea328b55de5f8af476a66951 100644
|
| --- a/sandbox/win/src/sandbox_policy_base.cc
|
| +++ b/sandbox/win/src/sandbox_policy_base.cc
|
| @@ -373,8 +373,21 @@ ResultCode PolicyBase::SetStderrHandle(HANDLE handle) {
|
| return SBOX_ALL_OK;
|
| }
|
|
|
| -ResultCode PolicyBase::AddRule(SubSystem subsystem, Semantics semantics,
|
| +ResultCode PolicyBase::AddRule(SubSystem subsystem,
|
| + Semantics semantics,
|
| const wchar_t* pattern) {
|
| + ResultCode result = AddRuleInternal(subsystem, semantics, pattern);
|
| + LOG_IF(ERROR, result != SBOX_ALL_OK) << "Failed to add sandbox rule."
|
| + << " error = " << result
|
| + << ", subsystem = " << subsystem
|
| + << ", semantics = " << semantics
|
| + << ", pattern = '" << pattern << "'";
|
| + return result;
|
| +}
|
| +
|
| +ResultCode PolicyBase::AddRuleInternal(SubSystem subsystem,
|
| + Semantics semantics,
|
| + const wchar_t* pattern) {
|
| if (NULL == policy_) {
|
| policy_ = MakeBrokerPolicyMemory();
|
| DCHECK(policy_);
|
|
|