Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2581)

Unified Diff: content/renderer/plugin_channel_host.cc

Issue 10908078: Code to collect issue 97285 debugging info for crash reports. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/renderer/plugin_channel_host.cc
diff --git a/content/renderer/plugin_channel_host.cc b/content/renderer/plugin_channel_host.cc
index d2fd0ae9a2547800b2fb08a87c3ccbd102da371e..c350880054f578a8a21775148f5cc1e6c89e2609 100644
--- a/content/renderer/plugin_channel_host.cc
+++ b/content/renderer/plugin_channel_host.cc
@@ -138,8 +138,10 @@ bool PluginChannelHost::Init(base::MessageLoopProxy* ipc_message_loop,
base::WaitableEvent* shutdown_event) {
bool ret =
NPChannelBase::Init(ipc_message_loop, create_pipe_now, shutdown_event);
- is_listening_filter_ = new IsListeningFilter;
- channel_->AddFilter(is_listening_filter_);
+ if (ret) {
+ is_listening_filter_ = new IsListeningFilter;
+ channel_->AddFilter(is_listening_filter_);
+ }
return ret;
}

Powered by Google App Engine
This is Rietveld 408576698