Chromium Code Reviews| Index: ppapi/proxy/proxy_channel.cc |
| diff --git a/ppapi/proxy/proxy_channel.cc b/ppapi/proxy/proxy_channel.cc |
| index b7f8a826ce3245bfbf40d203f642b3f58d64514e..4fd5617c3b75855b80eca12698117ad860187a5c 100644 |
| --- a/ppapi/proxy/proxy_channel.cc |
| +++ b/ppapi/proxy/proxy_channel.cc |
| @@ -31,11 +31,12 @@ bool ProxyChannel::InitWithChannel(Delegate* delegate, |
| bool is_client) { |
| delegate_ = delegate; |
| peer_pid_ = peer_pid; |
| - IPC::Channel::Mode mode = is_client ? IPC::Channel::MODE_CLIENT |
| - : IPC::Channel::MODE_SERVER; |
| - channel_.reset(new IPC::SyncChannel(channel_handle, mode, this, |
| - delegate->GetIPCMessageLoop(), true, |
| - delegate->GetShutdownEvent())); |
| + channel_ = IPC::SyncChannel::Create( |
| + this, delegate->GetIPCMessageLoop(), delegate->GetShutdownEvent()); |
| + channel_->Init( |
| + channel_handle, |
| + is_client ? IPC::Channel::MODE_CLIENT : IPC::Channel::MODE_SERVER, |
| + true); |
|
jam
2014/06/03 17:30:41
ditto
Hajime Morrita
2014/06/03 18:01:59
Done.
|
| return true; |
| } |