Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(652)

Unified Diff: ppapi/proxy/proxy_channel.cc

Issue 310853003: Add IPC::ChannelProxy::Create() and IPC::SyncChannel::Create() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
}

Powered by Google App Engine
This is Rietveld 408576698