Index: ppapi/nacl_irt/ppapi_dispatcher.cc |
diff --git a/ppapi/nacl_irt/ppapi_dispatcher.cc b/ppapi/nacl_irt/ppapi_dispatcher.cc |
index 9ca76b28b8240dd4e28a323ebde65324c1a261d2..e01114e831d0b589859e749f3a55474c532728fe 100644 |
--- a/ppapi/nacl_irt/ppapi_dispatcher.cc |
+++ b/ppapi/nacl_irt/ppapi_dispatcher.cc |
@@ -63,13 +63,13 @@ PpapiDispatcher::PpapiDispatcher(scoped_refptr<base::MessageLoopProxy> io_loop, |
// Delay initializing the SyncChannel until after we add filters. This |
// ensures that the filters won't miss any messages received by |
// the channel. |
- channel_.reset(new IPC::SyncChannel( |
- this, GetIPCMessageLoop(), GetShutdownEvent())); |
+ channel_ =IPC::SyncChannel::Create( |
+ this, GetIPCMessageLoop(), GetShutdownEvent()); |
channel_->AddFilter(new proxy::PluginMessageFilter( |
NULL, proxy::PluginGlobals::Get()->resource_reply_thread_registrar())); |
channel_->AddFilter( |
new tracing::ChildTraceMessageFilter(message_loop_.get())); |
- channel_->Init(channel_handle, IPC::Channel::MODE_SERVER, true); |
+ channel_->InitServer(channel_handle, true); |
} |
base::MessageLoopProxy* PpapiDispatcher::GetIPCMessageLoop() { |