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())); |
} |