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

Unified Diff: ipc/ipc_channel.cc

Issue 10565012: Revert 142482 - Add untrusted NaCl build for PPAPI proxy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 6 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
« no previous file with comments | « build/all.gyp ('k') | ipc/ipc_untrusted.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « build/all.gyp ('k') | ipc/ipc_untrusted.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698