Index: trunk/src/ppapi/proxy/proxy_channel.cc |
=================================================================== |
--- trunk/src/ppapi/proxy/proxy_channel.cc (revision 274314) |
+++ trunk/src/ppapi/proxy/proxy_channel.cc (working copy) |
@@ -31,14 +31,11 @@ |
bool is_client) { |
delegate_ = delegate; |
peer_pid_ = peer_pid; |
- channel_ = IPC::SyncChannel::Create( |
- this, |
- delegate->GetIPCMessageLoop(), |
- delegate->GetShutdownEvent()); |
- if (is_client) |
- channel_->InitClient(channel_handle, true); |
- else |
- channel_->InitServer(channel_handle, true); |
+ 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())); |
return true; |
} |