| Index: content/common/sandbox_win.cc
|
| diff --git a/content/common/sandbox_win.cc b/content/common/sandbox_win.cc
|
| index 8849a86ae900b7eb4ae4f9a59cb6e29cbf0e1150..7749d7bd84ec34591edb4d02a71fc20b449f9b85 100644
|
| --- a/content/common/sandbox_win.cc
|
| +++ b/content/common/sandbox_win.cc
|
| @@ -736,15 +736,17 @@ base::Process StartSandboxedProcess(
|
| if (sandbox::SBOX_ALL_OK != result) {
|
| if (result == sandbox::SBOX_ERROR_GENERIC)
|
| DPLOG(ERROR) << "Failed to launch process";
|
| - else
|
| + else if (result == sandbox::SBOX_ERROR_CREATE_PROCESS) {
|
| + // TODO(shrikant): Remove this special case handling after determining
|
| + // cause for lowbox/createprocess errors.
|
| + sandbox::PolicyBase* policy_base =
|
| + static_cast<sandbox::PolicyBase*>(policy);
|
| + if (policy_base->GetLowBoxSid()) {
|
| + UMA_HISTOGRAM_SPARSE_SLOWLY("Process.Sandbox.Lowbox.Launch.Error",
|
| + last_error);
|
| + }
|
| + } else
|
| DLOG(ERROR) << "Failed to launch process. Error: " << result;
|
| -
|
| - sandbox::PolicyBase* policy_base =
|
| - static_cast<sandbox::PolicyBase*>(policy);
|
| - if (policy_base->GetLowBoxSid()) {
|
| - UMA_HISTOGRAM_SPARSE_SLOWLY("Process.Sandbox.Lowbox.Launch.Error",
|
| - last_error);
|
| - }
|
| return base::Process();
|
| }
|
|
|
|
|