diff options
author | zork@google.com <zork@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-16 18:33:47 +0000 |
---|---|---|
committer | zork@google.com <zork@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-16 18:33:47 +0000 |
commit | 3daa8452e64a3d3c25f456083f52eef56bc0d888 (patch) | |
tree | 585edd77aee894f3944b6efcb18dc4abcf5ef701 /chrome/renderer | |
parent | 8c8657d61fb8792985888c88730b2eb2f4fc4019 (diff) | |
download | chromium_src-3daa8452e64a3d3c25f456083f52eef56bc0d888.zip chromium_src-3daa8452e64a3d3c25f456083f52eef56bc0d888.tar.gz chromium_src-3daa8452e64a3d3c25f456083f52eef56bc0d888.tar.bz2 |
Fixing a crash when plugin messages are sent to dialogs.
Review URL: http://codereview.chromium.org/18130
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8189 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer')
-rw-r--r-- | chrome/renderer/render_thread.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/renderer/render_thread.cc b/chrome/renderer/render_thread.cc index e0108e4..08ccd27 100644 --- a/chrome/renderer/render_thread.cc +++ b/chrome/renderer/render_thread.cc @@ -177,6 +177,9 @@ void RenderThread::OnMessageReceived(const IPC::Message& msg) { void RenderThread::OnPluginMessage(const FilePath& plugin_path, const std::vector<uint8>& data) { + if (!ChromePluginLib::IsInitialized()) { + return; + } CHECK(ChromePluginLib::IsPluginThread()); ChromePluginLib *chrome_plugin = ChromePluginLib::Find(plugin_path); if (chrome_plugin) { |