Index: base/debug/trace_event_impl.cc |
=================================================================== |
--- base/debug/trace_event_impl.cc (revision 123703) |
+++ base/debug/trace_event_impl.cc (working copy) |
@@ -335,7 +335,11 @@ |
ANNOTATE_BENIGN_RACE(&g_category_enabled[i], |
"trace_event category enabled"); |
} |
+#if defined(OS_NACL) // NaCl shouldn't expose the process id. |
+ SetProcessID(0); |
+#else |
SetProcessID(static_cast<int>(base::GetCurrentProcId())); |
+#endif |
} |
TraceLog::~TraceLog() { |