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

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: Fix GYP build. 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
Index: ipc/mojo/ipc_mojo_bootstrap.cc
diff --git a/ipc/mojo/ipc_mojo_bootstrap.cc b/ipc/mojo/ipc_mojo_bootstrap.cc
index 434f002744a5551fb719edb00ee013cadf3b9205..596925ee09686fc523752041038e12c96c16aa48 100644
--- a/ipc/mojo/ipc_mojo_bootstrap.cc
+++ b/ipc/mojo/ipc_mojo_bootstrap.cc
@@ -154,7 +154,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() {

Powered by Google App Engine
This is Rietveld 408576698