Chromium Code Reviews| Index: ipc/ipc_channel.cc |
| =================================================================== |
| --- ipc/ipc_channel.cc (revision 132566) |
| +++ 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(), |
|
dmichael (off chromium)
2012/04/23 14:51:11
Would it be simpler to give base::GetCurrentProcId
bbudge
2012/04/23 17:46:09
base/process_util.cc wouldn't build untrusted unle
|
| + process_id, |
| g_last_id.GetNext(), |
| base::RandInt(0, std::numeric_limits<int32>::max())); |
| } |