Index: ipc/ipc_channel.cc |
=================================================================== |
--- ipc/ipc_channel.cc (revision 142376) |
+++ ipc/ipc_channel.cc (working copy) |
@@ -30,16 +30,15 @@ |
// 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 |
+ int process_id = base::GetCurrentProcId(); |
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 |