Index: webkit/plugins/npapi/webplugin_impl.cc |
=================================================================== |
--- webkit/plugins/npapi/webplugin_impl.cc (revision 134628) |
+++ webkit/plugins/npapi/webplugin_impl.cc (working copy) |
@@ -256,8 +256,10 @@ |
WebPluginDelegate* plugin_delegate = page_delegate_->CreatePluginDelegate( |
file_path_, mime_type_); |
- if (!plugin_delegate) |
+ if (!plugin_delegate) { |
+ LOG(ERROR) << "Couldn't create plug-in delegate"; |
return false; |
+ } |
// Set the container before Initialize because the plugin may |
// synchronously call NPN_GetValue to get its container during its |
@@ -268,14 +270,7 @@ |
if (!ok) { |
LOG(ERROR) << "Couldn't initialize plug-in"; |
plugin_delegate->PluginDestroyed(); |
- |
- WebKit::WebPlugin* replacement_plugin = |
- page_delegate_->CreatePluginReplacement(file_path_); |
- if (!replacement_plugin->initialize(container)) |
- return false; |
- |
- container->setPlugin(replacement_plugin); |
- return true; |
+ return false; |
} |
delegate_ = plugin_delegate; |