Index: sandbox/win/src/target_process.cc |
diff --git a/sandbox/win/src/target_process.cc b/sandbox/win/src/target_process.cc |
index d163cfb5504840d4308607420ce78bc67b08c476..eac7ee7a0ee73108a7a4a1584c0618f185fc6381 100644 |
--- a/sandbox/win/src/target_process.cc |
+++ b/sandbox/win/src/target_process.cc |
@@ -10,6 +10,7 @@ |
#include <memory> |
#include <utility> |
+#include "base/debug/activity_tracker.h" |
#include "base/macros.h" |
#include "base/memory/free_deleter.h" |
#include "base/win/startup_information.h" |
@@ -160,6 +161,12 @@ ResultCode TargetProcess::Create( |
return SBOX_ERROR_CANNOT_FIND_BASE_ADDRESS; |
} |
+ base::debug::GlobalActivityTracker* tracker = |
+ base::debug::GlobalActivityTracker::Get(); |
+ if (tracker) { |
+ tracker->RecordProcessLaunch(process_info.process_id(), exe_path, |
+ command_line); |
+ } |
sandbox_process_info_.Set(process_info.Take()); |
return SBOX_ALL_OK; |
} |