diff options
Diffstat (limited to 'chrome/renderer/chrome_plugin_host.cc')
-rw-r--r-- | chrome/renderer/chrome_plugin_host.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/renderer/chrome_plugin_host.cc b/chrome/renderer/chrome_plugin_host.cc index 5caa99c..bd84b26 100644 --- a/chrome/renderer/chrome_plugin_host.cc +++ b/chrome/renderer/chrome_plugin_host.cc @@ -318,7 +318,7 @@ int STDCALL CPB_GetBrowsingContextInfo( return sizeof(char*); std::wstring wretval; - if (!RenderThread::current()->Send(new ViewHostMsg_GetDataDir(&wretval))) + if (!g_render_thread->Send(new ViewHostMsg_GetDataDir(&wretval))) return CPERR_FAILURE; file_util::AppendToPath(&wretval, chrome::kChromePluginDataDirname); *static_cast<char**>(buf) = CPB_StringDup(CPB_Alloc, WideToUTF8(wretval)); @@ -489,8 +489,8 @@ CPError STDCALL CPB_SendMessage(CPID id, const void *data, uint32 data_len) { const uint8* data_ptr = static_cast<const uint8*>(data); std::vector<uint8> v(data_ptr, data_ptr + data_len); - if (!RenderThread::current()->Send(new ViewHostMsg_PluginMessage( - plugin->filename(), v))) { + if (!g_render_thread->Send(new ViewHostMsg_PluginMessage(plugin->filename(), + v))) { return CPERR_FAILURE; } return CPERR_SUCCESS; @@ -505,7 +505,7 @@ CPError STDCALL CPB_SendSyncMessage(CPID id, const void *data, uint32 data_len, const uint8* data_ptr = static_cast<const uint8*>(data); std::vector<uint8> v(data_ptr, data_ptr + data_len); std::vector<uint8> r; - if (!RenderThread::current()->Send(new ViewHostMsg_PluginSyncMessage( + if (!g_render_thread->Send(new ViewHostMsg_PluginSyncMessage( plugin->filename(), v, &r))) { return CPERR_FAILURE; } |