Index: components/nacl/loader/nacl_listener.cc |
diff --git a/components/nacl/loader/nacl_listener.cc b/components/nacl/loader/nacl_listener.cc |
index 5056f0f70e986d08e2d45396fb77acd210c744e2..9aa210f5bb8bceae6d7cf84f652df09f8835ebb9 100644 |
--- a/components/nacl/loader/nacl_listener.cc |
+++ b/components/nacl/loader/nacl_listener.cc |
@@ -244,8 +244,8 @@ void NaClListener::Listen() { |
std::string channel_name = |
CommandLine::ForCurrentProcess()->GetSwitchValueASCII( |
switches::kProcessChannelID); |
- channel_.reset(new IPC::SyncChannel( |
- this, io_thread_.message_loop_proxy().get(), &shutdown_event_)); |
+ channel_ = IPC::SyncChannel::Create( |
+ this, io_thread_.message_loop_proxy().get(), &shutdown_event_); |
filter_ = new IPC::SyncMessageFilter(&shutdown_event_); |
channel_->AddFilter(filter_.get()); |
channel_->Init(channel_name, IPC::Channel::MODE_CLIENT, true); |