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

Unified Diff: content/zygote/zygote_linux.cc

Issue 1186873006: Add Get/SetUniqueIdForProcess. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 5 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/process_handle.cc ('K') | « base/process/process_handle.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/zygote/zygote_linux.cc
diff --git a/content/zygote/zygote_linux.cc b/content/zygote/zygote_linux.cc
index 0a333e38843bf6b76d297efd1d63368b36b90b92..1eb6aebb74645de1f2fc10e6362149a70d937ab4 100644
--- a/content/zygote/zygote_linux.cc
+++ b/content/zygote/zygote_linux.cc
@@ -430,6 +430,7 @@ int Zygote::ForkWithRealPid(const std::string& process_type,
// to system trace event data.
base::trace_event::TraceLog::GetInstance()->SetProcessID(
static_cast<int>(real_pid));
+ base::SetUniqueIdForProcess(static_cast<uint32>(real_pid));
Lei Zhang 2015/07/28 21:54:23 base/basictypes.h says to use uint32_t instead, di
rickyz (no longer on Chrome) 2015/07/28 22:39:37 Done.
#endif
return 0;
}
« base/process/process_handle.cc ('K') | « base/process/process_handle.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698