Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(120)

Unified Diff: sandbox/win/src/target_process.cc

Issue 2680123003: Multi-Process Tracking Support (Closed)
Patch Set: wire actual process launch/exit to global tracker Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/process/process_win.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..b1ad5802bcf1edbdce4289722c0dc742a0469037 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,8 @@ ResultCode TargetProcess::Create(
return SBOX_ERROR_CANNOT_FIND_BASE_ADDRESS;
}
+ base::debug::GlobalActivityTracker::RecordProcessLaunchIfEnabled(
manzagop (departed) 2017/02/17 19:39:54 Will these ever be recorded as exiting? I guess w
bcwhite 2017/02/17 20:31:53 Yes, but it's recognized in a different file. In
+ process_info.process_id());
sandbox_process_info_.Set(process_info.Take());
return SBOX_ALL_OK;
}
« no previous file with comments | « base/process/process_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698