Index: ipc/ipc_channel.cc |
=================================================================== |
--- ipc/ipc_channel.cc (revision 142493) |
+++ ipc/ipc_channel.cc (working copy) |
@@ -30,15 +30,16 @@ |
// component. The strong random component prevents other processes from |
// hijacking or squatting on predictable channel names. |
+ int process_id; |
#if !defined(OS_NACL) |
- int process_id = base::GetCurrentProcId(); |
+ process_id = base::GetCurrentProcId(); |
+#else |
+ process_id = 0; |
+#endif |
return base::StringPrintf("%d.%u.%d", |
process_id, |
g_last_id.GetNext(), |
base::RandInt(0, std::numeric_limits<int32>::max())); |
-#else |
- return std::string(); |
-#endif |
} |
} // namespace IPC |