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

Unified Diff: base/debug/trace_event_impl.cc

Issue 9474034: Make base::Logging compile with the NaCl toolchain. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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/debug/debugger_posix.cc ('k') | base/logging.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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() {
« no previous file with comments | « base/debug/debugger_posix.cc ('k') | base/logging.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698