Index: components/nacl/loader/nacl_main.cc |
diff --git a/components/nacl/loader/nacl_main.cc b/components/nacl/loader/nacl_main.cc |
index 5809dcae852abce008c98e62b0ce85829428636d..64a4f9e59c12d9a88e59613046081ad5b77fff7a 100644 |
--- a/components/nacl/loader/nacl_main.cc |
+++ b/components/nacl/loader/nacl_main.cc |
@@ -14,11 +14,15 @@ |
#include "components/nacl/loader/nacl_main_platform_delegate.h" |
#include "content/public/common/content_switches.h" |
#include "content/public/common/main_function_params.h" |
+#include "mojo/edk/embedder/embedder.h" |
// main() routine for the NaCl loader process. |
int NaClMain(const content::MainFunctionParams& parameters) { |
const base::CommandLine& parsed_command_line = parameters.command_line; |
+ // The Mojo EDK must be initialized before using IPC. |
+ mojo::edk::Init(); |
+ |
// The main thread of the plugin services IO. |
base::MessageLoopForIO main_message_loop; |
base::PlatformThread::SetName("CrNaClMain"); |