| Index: base/process/launch_win.cc
|
| diff --git a/base/process/launch_win.cc b/base/process/launch_win.cc
|
| index 1349b3e4af3d101d4515e04d5ae081195e73016a..7f60bae77ed255b90731eeb71fc726f75ce440b6 100644
|
| --- a/base/process/launch_win.cc
|
| +++ b/base/process/launch_win.cc
|
| @@ -17,6 +17,7 @@
|
| #include "base/bind.h"
|
| #include "base/bind_helpers.h"
|
| #include "base/command_line.h"
|
| +#include "base/debug/activity_tracker.h"
|
| #include "base/debug/stack_trace.h"
|
| #include "base/logging.h"
|
| #include "base/message_loop/message_loop.h"
|
| @@ -95,6 +96,8 @@ bool GetAppOutputInternal(const StringPiece16& cl,
|
| return false;
|
| }
|
| base::win::ScopedProcessInformation proc_info(temp_process_info);
|
| + base::debug::GlobalActivityTracker::RecordProcessLaunchIfEnabled(
|
| + proc_info.process_id());
|
|
|
| // Close our writing end of pipe now. Otherwise later read would not be able
|
| // to detect end of child's output.
|
| @@ -119,6 +122,8 @@ bool GetAppOutputInternal(const StringPiece16& cl,
|
| int exit_code;
|
| base::TerminationStatus status = GetTerminationStatus(
|
| proc_info.process_handle(), &exit_code);
|
| + base::debug::GlobalActivityTracker::RecordProcessExitIfEnabled(
|
| + proc_info.process_id(), exit_code);
|
| return status != base::TERMINATION_STATUS_PROCESS_CRASHED &&
|
| status != base::TERMINATION_STATUS_ABNORMAL_TERMINATION;
|
| }
|
| @@ -317,6 +322,8 @@ Process LaunchProcess(const string16& cmdline,
|
| if (options.wait)
|
| WaitForSingleObject(process_info.process_handle(), INFINITE);
|
|
|
| + base::debug::GlobalActivityTracker::RecordProcessLaunchIfEnabled(
|
| + process_info.process_id());
|
| return Process(process_info.TakeProcessHandle());
|
| }
|
|
|
| @@ -344,6 +351,8 @@ Process LaunchElevatedProcess(const CommandLine& cmdline,
|
| if (options.wait)
|
| WaitForSingleObject(shex_info.hProcess, INFINITE);
|
|
|
| + base::debug::GlobalActivityTracker::RecordProcessLaunchIfEnabled(
|
| + GetProcessId(shex_info.hProcess));
|
| return Process(shex_info.hProcess);
|
| }
|
|
|
|
|