diff options
author | mpcomplete@google.com <mpcomplete@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-23 22:51:46 +0000 |
---|---|---|
committer | mpcomplete@google.com <mpcomplete@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-23 22:51:46 +0000 |
commit | 020f5bad1085d21d6ad912241ae3669ef1a9375f (patch) | |
tree | b20ad4173a6117abe3c5c6b54a550fda49338d90 /chrome/renderer/chrome_plugin_host.cc | |
parent | d4f7e76644f684d0e9395fa8225e0d1c607de241 (diff) | |
download | chromium_src-020f5bad1085d21d6ad912241ae3669ef1a9375f.zip chromium_src-020f5bad1085d21d6ad912241ae3669ef1a9375f.tar.gz chromium_src-020f5bad1085d21d6ad912241ae3669ef1a9375f.tar.bz2 |
Add an accessor to get the CPAPI main plugin thread's MessageLoop. Use that
to fix a crash in renderer/chrome_plugin_host.cc.
Review URL: http://codereview.chromium.org/4050
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2528 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/chrome_plugin_host.cc')
-rw-r--r-- | chrome/renderer/chrome_plugin_host.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/renderer/chrome_plugin_host.cc b/chrome/renderer/chrome_plugin_host.cc index 66d4d04..9de6669 100644 --- a/chrome/renderer/chrome_plugin_host.cc +++ b/chrome/renderer/chrome_plugin_host.cc @@ -524,7 +524,7 @@ CPError STDCALL CPB_SendSyncMessage(CPID id, const void *data, uint32 data_len, CPError STDCALL CPB_PluginThreadAsyncCall(CPID id, void (*func)(void *), void *user_data) { - MessageLoop *message_loop = RenderThread::current()->message_loop(); + MessageLoop *message_loop = ChromePluginLib::GetPluginThreadLoop(); if (!message_loop) { return CPERR_FAILURE; } |