Index: base/process/process_win.cc |
diff --git a/base/process/process_win.cc b/base/process/process_win.cc |
index 623212654ee5cdabfee2355f81a8dc87f5f57d94..9232c6dbcacd64d4f0b044c6059c2ffbc22ad4e7 100644 |
--- a/base/process/process_win.cc |
+++ b/base/process/process_win.cc |
@@ -139,6 +139,10 @@ bool Process::Terminate(int exit_code, bool wait) const { |
} else if (!result) { |
DPLOG(ERROR) << "Unable to terminate process"; |
} |
+ if (result) { |
+ base::debug::GlobalActivityTracker::RecordProcessExitIfEnabled(Pid(), |
+ exit_code); |
+ } |
return result; |
} |
@@ -162,6 +166,9 @@ bool Process::WaitForExitWithTimeout(TimeDelta timeout, int* exit_code) const { |
if (exit_code) |
*exit_code = temp_code; |
+ |
+ base::debug::GlobalActivityTracker::RecordProcessExitIfEnabled( |
+ Pid(), static_cast<int>(temp_code)); |
return true; |
} |