| Index: ppapi/proxy/proxy_channel.cc
|
| diff --git a/ppapi/proxy/proxy_channel.cc b/ppapi/proxy/proxy_channel.cc
|
| index c1f48de6b4298296fb4bc8bd5acfa9cc96b8a3d9..7a7dfaa469e086a6c4fba7bc8010ee2123eeb26f 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,
|
| + IPC::Channel::Mode mode = is_client
|
| + ? IPC::Channel::MODE_CLIENT
|
| + : IPC::Channel::MODE_SERVER;
|
| + channel_ = IPC::SyncChannel::Create(channel_handle, mode, this,
|
| delegate->GetIPCMessageLoop(), true,
|
| - delegate->GetShutdownEvent()));
|
| + delegate->GetShutdownEvent());
|
| return true;
|
| }
|
|
|
|
|