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

Unified Diff: ipc/ipc_channel.cc

Issue 10167024: Add ipc_channel_nacl to the untrusted build and fix all compile/link errors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 8 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
Index: ipc/ipc_channel.cc
===================================================================
--- ipc/ipc_channel.cc (revision 133452)
+++ ipc/ipc_channel.cc (working copy)
@@ -30,8 +30,14 @@
// component. The strong random component prevents other processes from
// hijacking or squatting on predictable channel names.
+ int process_id;
+#if !defined(OS_NACL)
+ process_id = base::GetCurrentProcId();
+#else
+ process_id = 0;
+#endif
return base::StringPrintf("%d.%u.%d",
- base::GetCurrentProcId(),
+ process_id,
g_last_id.GetNext(),
base::RandInt(0, std::numeric_limits<int32>::max()));
}
« no previous file with comments | « ipc/ipc_channel.h ('k') | ipc/ipc_channel_nacl.h » ('j') | ipc/ipc_channel_nacl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698