| Index: content/ppapi_plugin/ppapi_thread.cc
|
| diff --git a/content/ppapi_plugin/ppapi_thread.cc b/content/ppapi_plugin/ppapi_thread.cc
|
| index 7ee63f64f2a8ab14734fe2bccc65dd408f7d59d1..e366b9b312409fdfeb211012b45da03e2814aad5 100644
|
| --- a/content/ppapi_plugin/ppapi_thread.cc
|
| +++ b/content/ppapi_plugin/ppapi_thread.cc
|
| @@ -73,6 +73,14 @@ PpapiThread::~PpapiThread() {
|
| WebKit::shutdown();
|
| }
|
|
|
| +bool PpapiThread::Send(IPC::Message* msg) {
|
| + // Allow access from multiple threads.
|
| + if (MessageLoop::current() == message_loop())
|
| + return ChildThread::Send(msg);
|
| +
|
| + return sync_message_filter()->Send(msg);
|
| +}
|
| +
|
| // The "regular" ChildThread implements this function and does some standard
|
| // dispatching, then uses the message router. We don't actually need any of
|
| // this so this function just overrides that one.
|
| @@ -154,13 +162,6 @@ std::set<PP_Instance>* PpapiThread::GetGloballySeenInstanceIDSet() {
|
| return &globally_seen_instance_ids_;
|
| }
|
|
|
| -bool PpapiThread::SendToBrowser(IPC::Message* msg) {
|
| - if (MessageLoop::current() == message_loop())
|
| - return ChildThread::Send(msg);
|
| -
|
| - return sync_message_filter()->Send(msg);
|
| -}
|
| -
|
| IPC::Sender* PpapiThread::GetBrowserSender() {
|
| return this;
|
| }
|
|
|