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

Unified Diff: ipc/mojo/ipc_mojo_bootstrap.cc

Issue 2071143003: Various changes to make Mojo work under NaCl non-sfi. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase and comment Created 4 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 | « components/nacl_nonsfi.gyp ('k') | mojo/edk/embedder/platform_channel_pair_posix.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/mojo/ipc_mojo_bootstrap.cc
diff --git a/ipc/mojo/ipc_mojo_bootstrap.cc b/ipc/mojo/ipc_mojo_bootstrap.cc
index b488dd5ab6148a9b63a347c9ae57b5cd5e54dc29..1aca9c9335dcbdb88908999da0751d8b18052bda 100644
--- a/ipc/mojo/ipc_mojo_bootstrap.cc
+++ b/ipc/mojo/ipc_mojo_bootstrap.cc
@@ -155,7 +155,11 @@ base::ProcessId MojoBootstrap::GetSelfPID() const {
if (int global_pid = Channel::GetGlobalPid())
return global_pid;
#endif // OS_LINUX
+#if defined(OS_NACL)
+ return -1;
+#else
return base::GetCurrentProcId();
+#endif // defined(OS_NACL)
}
void MojoBootstrap::Fail() {
« no previous file with comments | « components/nacl_nonsfi.gyp ('k') | mojo/edk/embedder/platform_channel_pair_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698