diff options
Diffstat (limited to 'components/nacl')
-rw-r--r-- | components/nacl/broker/nacl_broker_listener.cc | 3 | ||||
-rw-r--r-- | components/nacl/loader/nacl_ipc_adapter.cc | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/components/nacl/broker/nacl_broker_listener.cc b/components/nacl/broker/nacl_broker_listener.cc index c4f268da..bceed22 100644 --- a/components/nacl/broker/nacl_broker_listener.cc +++ b/components/nacl/broker/nacl_broker_listener.cc @@ -40,8 +40,7 @@ void NaClBrokerListener::Listen() { std::string channel_name = CommandLine::ForCurrentProcess()->GetSwitchValueASCII( switches::kProcessChannelID); - channel_.reset(new IPC::Channel( - channel_name, IPC::Channel::MODE_CLIENT, this)); + channel_ = IPC::Channel::CreateClient(channel_name, this); CHECK(channel_->Connect()); base::MessageLoop::current()->Run(); } diff --git a/components/nacl/loader/nacl_ipc_adapter.cc b/components/nacl/loader/nacl_ipc_adapter.cc index 1398b22..d3160e4 100644 --- a/components/nacl/loader/nacl_ipc_adapter.cc +++ b/components/nacl/loader/nacl_ipc_adapter.cc @@ -329,8 +329,7 @@ NaClIPCAdapter::NaClIPCAdapter(const IPC::ChannelHandle& handle, cond_var_(&lock_), task_runner_(runner), locked_data_() { - io_thread_data_.channel_.reset( - new IPC::Channel(handle, IPC::Channel::MODE_SERVER, this)); + io_thread_data_.channel_ = IPC::Channel::CreateServer(handle, this); // Note, we can not PostTask for ConnectChannelOnIOThread here. If we did, // and that task ran before this constructor completes, the reference count // would go to 1 and then to 0 because of the Task, before we've been returned |