| Index: ppapi/proxy/plugin_message_filter.cc
|
| diff --git a/ppapi/proxy/plugin_message_filter.cc b/ppapi/proxy/plugin_message_filter.cc
|
| index 18469579b3839b002afe49272a7d6fa4ee5d6e4d..f2f1cbeef144475778d7119a4dcfc2b4d04d99b1 100644
|
| --- a/ppapi/proxy/plugin_message_filter.cc
|
| +++ b/ppapi/proxy/plugin_message_filter.cc
|
| @@ -83,12 +83,16 @@ void PluginMessageFilter::OnMsgResourceReply(
|
| const ResourceMessageReplyParams& reply_params,
|
| const IPC::Message& nested_msg) {
|
| scoped_refptr<base::MessageLoopProxy> target =
|
| - resource_reply_thread_registrar_->GetTargetThreadAndUnregister(
|
| - reply_params.pp_resource(), reply_params.sequence());
|
| -
|
| - target->PostTask(
|
| - FROM_HERE,
|
| - base::Bind(&DispatchResourceReply, reply_params, nested_msg));
|
| + resource_reply_thread_registrar_->GetTargetThread(reply_params,
|
| + nested_msg);
|
| +
|
| + if (!target.get()) {
|
| + DispatchResourceReply(reply_params, nested_msg);
|
| + } else {
|
| + target->PostTask(
|
| + FROM_HERE,
|
| + base::Bind(&DispatchResourceReply, reply_params, nested_msg));
|
| + }
|
| }
|
|
|
| // static
|
|
|