summaryrefslogtreecommitdiffstats
path: root/content
diff options
context:
space:
mode:
Diffstat (limited to 'content')
-rw-r--r--content/renderer/render_view_impl.cc4
-rw-r--r--content/renderer/webplugin_delegate_proxy.cc13
2 files changed, 14 insertions, 3 deletions
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
index 8240f49..aa61f8c 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -3499,8 +3499,10 @@ void RenderViewImpl::LoadURLExternally(
webkit::npapi::WebPluginDelegate* RenderViewImpl::CreatePluginDelegate(
const FilePath& file_path,
const std::string& mime_type) {
- if (!PluginChannelHost::IsListening())
+ if (!PluginChannelHost::IsListening()) {
+ LOG(ERROR) << "PluginChannelHost isn't listening";
return NULL;
+ }
bool in_process_plugin = RenderProcess::current()->UseInProcessPlugins();
if (in_process_plugin) {
diff --git a/content/renderer/webplugin_delegate_proxy.cc b/content/renderer/webplugin_delegate_proxy.cc
index 890003c..ca04b66 100644
--- a/content/renderer/webplugin_delegate_proxy.cc
+++ b/content/renderer/webplugin_delegate_proxy.cc
@@ -283,25 +283,31 @@ bool WebPluginDelegateProxy::Initialize(
// plugin crashed on initialization.
if (!info_.path.empty()) {
render_view_->PluginCrashed(info_.path);
+ LOG(ERROR) << "Plug-in crashed on start";
// Return true so that the plugin widget is created and we can paint the
// crashed plugin there.
return true;
}
+ LOG(ERROR) << "Plug-in couldn't be found";
return false;
}
scoped_refptr<PluginChannelHost> channel_host(
PluginChannelHost::GetPluginChannelHost(
channel_handle, ChildProcess::current()->io_message_loop_proxy()));
- if (!channel_host.get())
+ if (!channel_host.get()) {
+ LOG(ERROR) << "Couldn't get PluginChannelHost";
return false;
+ }
int instance_id;
bool result = channel_host->Send(new PluginMsg_CreateInstance(
mime_type_, &instance_id));
- if (!result)
+ if (!result) {
+ LOG(ERROR) << "Couldn't send PluginMsg_CreateInstance";
return false;
+ }
channel_host_ = channel_host;
instance_id_ = instance_id;
@@ -337,6 +343,9 @@ bool WebPluginDelegateProxy::Initialize(
IPC::Message* msg = new PluginMsg_Init(instance_id_, params, &result);
Send(msg);
+ if (!result)
+ LOG(ERROR) << "PluginMsg_Init returned false";
+
render_view_->RegisterPluginDelegate(this);
return result;