Index: components/nacl/loader/nacl_trusted_listener.cc |
diff --git a/components/nacl/loader/nacl_trusted_listener.cc b/components/nacl/loader/nacl_trusted_listener.cc |
index 19a60387e713d75044777a6e2bf303d88d947036..2392e9a75a60c6871e5c0c244925c75fac8eda8e 100644 |
--- a/components/nacl/loader/nacl_trusted_listener.cc |
+++ b/components/nacl/loader/nacl_trusted_listener.cc |
@@ -8,9 +8,8 @@ NaClTrustedListener::NaClTrustedListener( |
const IPC::ChannelHandle& handle, |
base::MessageLoopProxy* message_loop_proxy, |
base::WaitableEvent* shutdown_event) { |
- channel_.reset(new IPC::SyncChannel(handle, IPC::Channel::MODE_SERVER, this, |
- message_loop_proxy, true, |
- shutdown_event)); |
+ channel_ = IPC::SyncChannel::CreateServer( |
+ handle, this, message_loop_proxy, true, shutdown_event); |
} |
NaClTrustedListener::~NaClTrustedListener() { |