| Index: content/common/sandbox_win.cc
|
| diff --git a/content/common/sandbox_win.cc b/content/common/sandbox_win.cc
|
| index 789a7a882d42d55b34096411c07cf067a87907ac..b8474b68268ece83f4109d2bb7371ab04547ee8c 100644
|
| --- a/content/common/sandbox_win.cc
|
| +++ b/content/common/sandbox_win.cc
|
| @@ -10,6 +10,7 @@
|
|
|
| #include "base/base_switches.h"
|
| #include "base/command_line.h"
|
| +#include "base/debug/activity_tracker.h"
|
| #include "base/debug/profiler.h"
|
| #include "base/files/file_util.h"
|
| #include "base/hash.h"
|
| @@ -836,6 +837,13 @@ sandbox::ResultCode StartSandboxedProcess(
|
|
|
| TRACE_EVENT_END0("startup", "StartProcessWithAccess::LAUNCHPROCESS");
|
|
|
| + base::debug::GlobalActivityTracker* tracker =
|
| + base::debug::GlobalActivityTracker::Get();
|
| + if (tracker) {
|
| + tracker->RecordProcessLaunch(target.process_id(),
|
| + cmd_line->GetCommandLineString());
|
| + }
|
| +
|
| if (sandbox::SBOX_ALL_OK != result) {
|
| UMA_HISTOGRAM_SPARSE_SLOWLY("Process.Sandbox.Launch.Error", last_error);
|
| if (result == sandbox::SBOX_ERROR_GENERIC)
|
|
|