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

Unified Diff: mojo/edk/system/core.cc

Issue 2039713004: [mojo-edk] Make the Mojo EDK compile under NaCl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments 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 | « mojo/edk/system/channel_posix.cc ('k') | mojo/edk/system/node_channel.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(
« no previous file with comments | « mojo/edk/system/channel_posix.cc ('k') | mojo/edk/system/node_channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698