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

Unified Diff: components/nacl/loader/nacl_listener.cc

Issue 1059233004: Init Mojo embedder for Windows NaCl plugins. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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/loader/nacl_helper_win_64.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/nacl/loader/nacl_listener.cc
diff --git a/components/nacl/loader/nacl_listener.cc b/components/nacl/loader/nacl_listener.cc
index 424112eeb32ee08d63e1ef5e6b5cb9e8ed95df5d..1a2b894f4f0dbda149eda32f4ae23bbba6d3aea7 100644
--- a/components/nacl/loader/nacl_listener.cc
+++ b/components/nacl/loader/nacl_listener.cc
@@ -428,14 +428,7 @@ void NaClListener::OnStart(const nacl::NaClStartParams& params) {
args->nexe_desc = NaClDescCreateWithFilePathMetadata(nexe_file,
file_path_str.c_str());
-#if defined(OS_POSIX)
if (params.enable_mojo) {
-#if !defined(OS_MACOSX)
- // Don't call mojo::embedder::Init on Mac; it's already been called from
- // ChromeMain() (see chrome/app/chrome_exe_main_mac.cc).
- mojo::embedder::Init(make_scoped_ptr(
- new mojo::embedder::SimplePlatformSupport()));
-#endif
// InjectMojo adds a file descriptor to the process that allows Mojo calls
// to use an implementation defined outside the NaCl sandbox. See
// //mojo/nacl for implementation details.
@@ -445,9 +438,6 @@ void NaClListener::OnStart(const nacl::NaClStartParams& params) {
// fails on any imc_sendmsg() call to make debugging easier.
InjectDisabledMojo(nap);
}
-#else
- InjectDisabledMojo(nap);
-#endif
// TODO(yusukes): Support pre-opening resource files.
CHECK(params.prefetched_resource_files.empty());
« no previous file with comments | « components/nacl/loader/nacl_helper_win_64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698