Index: content/plugin/webplugin_delegate_stub.cc |
diff --git a/content/plugin/webplugin_delegate_stub.cc b/content/plugin/webplugin_delegate_stub.cc |
index 3e472af9056cf21d63842d7e2b7e44d332668d85..2b76d8df97da68239ddbd56e280380a55b24be67 100644 |
--- a/content/plugin/webplugin_delegate_stub.cc |
+++ b/content/plugin/webplugin_delegate_stub.cc |
@@ -165,8 +165,10 @@ void WebPluginDelegateStub::OnInit(const PluginMsg_Init_Params& params, |
base::FilePath path = |
command_line.GetSwitchValuePath(switches::kPluginPath); |
- webplugin_ = new WebPluginProxy( |
- channel_, instance_id_, page_url_, params.host_render_view_routing_id); |
+ webplugin_ = new WebPluginProxy(channel_.get(), |
+ instance_id_, |
+ page_url_, |
+ params.host_render_view_routing_id); |
delegate_ = webkit::npapi::WebPluginDelegateImpl::Create(path, mime_type_); |
if (delegate_) { |
webplugin_->set_delegate(delegate_); |