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..5f1966d861b5056f6778ff6fa6593a32d9aa86fa 100644 |
--- a/components/nacl/loader/nacl_listener.cc |
+++ b/components/nacl/loader/nacl_listener.cc |
@@ -244,11 +244,11 @@ 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); |
+ channel_->InitClient(channel_name, true); |
main_loop_ = base::MessageLoop::current(); |
main_loop_->Run(); |
} |