Index: components/nacl/loader/nonsfi/nonsfi_listener.cc |
diff --git a/components/nacl/loader/nonsfi/nonsfi_listener.cc b/components/nacl/loader/nonsfi/nonsfi_listener.cc |
index 4c992b8903b9919e30c94c310ee5ff830e712129..baef08c9878f3296af82a4ae1fbd662adf078036 100644 |
--- a/components/nacl/loader/nonsfi/nonsfi_listener.cc |
+++ b/components/nacl/loader/nonsfi/nonsfi_listener.cc |
@@ -14,7 +14,6 @@ |
#include "base/rand_util.h" |
#include "base/run_loop.h" |
#include "build/build_config.h" |
-#include "components/nacl/common/nacl.mojom.h" |
#include "components/nacl/common/nacl_messages.h" |
#include "components/nacl/common/nacl_types.h" |
#include "components/nacl/loader/nacl_trusted_listener.h" |
@@ -121,12 +120,12 @@ |
params.manifest_service_channel_handle); |
ppapi::StartUpPlugin(); |
- trusted_listener_ = base::MakeUnique<NaClTrustedListener>( |
- mojo::MakeProxy(nacl::mojom::NaClRendererHostPtrInfo( |
- mojo::ScopedMessagePipeHandle( |
- params.trusted_service_channel_handle.mojo_handle), |
- nacl::mojom::NaClRendererHost::Version_)), |
- io_thread_.task_runner().get()); |
+ // TODO(teravest): Do we plan on using this renderer handle for nexe loading |
+ // for non-SFI? Right now, passing an empty channel handle instead causes |
+ // hangs, so we'll keep it. |
+ trusted_listener_ = |
+ new NaClTrustedListener(params.trusted_service_channel_handle, |
+ io_thread_.task_runner().get(), &shutdown_event_); |
// Ensure that the validation cache key (used as an extra input to the |
// validation cache's hashing) isn't exposed accidentally. |