summaryrefslogtreecommitdiffstats
path: root/chrome/plugin
diff options
context:
space:
mode:
authormichaeln@google.com <michaeln@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-05 01:17:29 +0000
committermichaeln@google.com <michaeln@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-05 01:17:29 +0000
commit99f367cc966bff34742038d12580b8bad30b1ee0 (patch)
tree1484ec0051888806d380bc46c59bf78415a2018d /chrome/plugin
parent8f82e5027783256b11b66e63cd8185c18f318493 (diff)
downloadchromium_src-99f367cc966bff34742038d12580b8bad30b1ee0.zip
chromium_src-99f367cc966bff34742038d12580b8bad30b1ee0.tar.gz
chromium_src-99f367cc966bff34742038d12580b8bad30b1ee0.tar.bz2
Fix a crashing bug when shutting down the plugin process.
Review URL: http://codereview.chromium.org/459 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1747 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/plugin')
-rw-r--r--chrome/plugin/plugin_thread.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/plugin/plugin_thread.cc b/chrome/plugin/plugin_thread.cc
index 25bd06d..acb179b 100644
--- a/chrome/plugin/plugin_thread.cc
+++ b/chrome/plugin/plugin_thread.cc
@@ -47,7 +47,7 @@ void PluginThread::OnChannelError() {
}
bool PluginThread::Send(IPC::Message* msg) {
- return channel_->Send(msg);
+ return channel_.get() ? channel_->Send(msg) : false;
}
void PluginThread::OnMessageReceived(const IPC::Message& msg) {