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

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

Issue 2680123003: Multi-Process Tracking Support (Closed)
Patch Set: record command-line when a process is started 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/process/launch_win.cc ('K') | « content/app/content_main.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..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 =
manzagop (departed) 2017/02/24 15:56:35 Use your *IfEnabled counterpart?
+ 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;
}
« base/process/launch_win.cc ('K') | « content/app/content_main.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698