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

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

Issue 2680123003: Multi-Process Tracking Support (Closed)
Patch Set: added defined process-phase recording and process-exit callback support 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
« base/debug/activity_tracker.cc ('K') | « 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(
+ process_info.process_id());
sandbox_process_info_.Set(process_info.Take());
return SBOX_ALL_OK;
}
« base/debug/activity_tracker.cc ('K') | « base/process/process_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698