Index: content/child/npapi/np_channel_base.cc |
diff --git a/content/child/npapi/np_channel_base.cc b/content/child/npapi/np_channel_base.cc |
index 76845bd8f21a9707079d201782c4ea9414747157..d7e7508840cbff512ca1f8e248be0e16525e4c85 100644 |
--- a/content/child/npapi/np_channel_base.cc |
+++ b/content/child/npapi/np_channel_base.cc |
@@ -178,9 +178,9 @@ bool NPChannelBase::Init(base::MessageLoopProxy* ipc_message_loop, |
return false; |
#endif |
- channel_.reset(new IPC::SyncChannel( |
- channel_handle_, mode_, this, ipc_message_loop, create_pipe_now, |
- shutdown_event)); |
+ channel_ = IPC::SyncChannel::Create( |
+ this, ipc_message_loop, shutdown_event); |
+ channel_->InitByMode(channel_handle_, mode_, create_pipe_now); |
#if defined(OS_POSIX) |
// Check the validity of fd for bug investigation. Remove after fixed. |