Index: mojo/edk/system/core.cc |
diff --git a/mojo/edk/system/core.cc b/mojo/edk/system/core.cc |
index 355c65f667a094dcc200a10f4201f47da14ea06c..efb3e43c04581819dd435a42da6fe92f2e03756d 100644 |
--- a/mojo/edk/system/core.cc |
+++ b/mojo/edk/system/core.cc |
@@ -18,7 +18,6 @@ |
#include "base/rand_util.h" |
#include "base/threading/thread_task_runner_handle.h" |
#include "base/time/time.h" |
-#include "crypto/random.h" |
#include "mojo/edk/embedder/embedder.h" |
#include "mojo/edk/embedder/embedder_internal.h" |
#include "mojo/edk/embedder/platform_shared_buffer.h" |
@@ -316,6 +315,10 @@ void Core::RequestShutdown(const base::Closure& callback) { |
ScopedMessagePipeHandle Core::CreateMessagePipe( |
ScopedPlatformHandle platform_handle) { |
+#if defined(OS_NACL) |
+ NOTREACHED(); |
+ return ScopedMessagePipeHandle(); |
+#else |
ports::PortRef port0, port1; |
GetNodeController()->node()->CreatePortPair(&port0, &port1); |
MojoHandle handle = AddDispatcher( |
@@ -324,6 +327,7 @@ ScopedMessagePipeHandle Core::CreateMessagePipe( |
RemoteMessagePipeBootstrap::Create( |
GetNodeController(), std::move(platform_handle), port1); |
return ScopedMessagePipeHandle(MessagePipeHandle(handle)); |
+#endif |
} |
ScopedMessagePipeHandle Core::CreateParentMessagePipe( |