| Index: ppapi/proxy/plugin_dispatcher.cc
|
| diff --git a/ppapi/proxy/plugin_dispatcher.cc b/ppapi/proxy/plugin_dispatcher.cc
|
| index 0e406db6c5fecd042d2ce51bb87a7808561d50f6..d48dbfb5de32949041a0b93583e94379f0d68ed3 100644
|
| --- a/ppapi/proxy/plugin_dispatcher.cc
|
| +++ b/ppapi/proxy/plugin_dispatcher.cc
|
| @@ -260,6 +260,19 @@ thunk::ResourceCreationAPI* PluginDispatcher::GetResourceCreationAPI() {
|
| GetInterfaceProxy(API_ID_RESOURCE_CREATION));
|
| }
|
|
|
| +// static
|
| +void PluginDispatcher::DispatchResourceReply(
|
| + const ppapi::proxy::ResourceMessageReplyParams& reply_params,
|
| + const IPC::Message& nested_msg) {
|
| + Resource* resource = PpapiGlobals::Get()->GetResourceTracker()->GetResource(
|
| + reply_params.pp_resource());
|
| + if (!resource) {
|
| + NOTREACHED();
|
| + return;
|
| + }
|
| + resource->OnReplyReceived(reply_params, nested_msg);
|
| +}
|
| +
|
| void PluginDispatcher::ForceFreeAllInstances() {
|
| if (!g_instance_to_dispatcher)
|
| return;
|
| @@ -281,13 +294,7 @@ void PluginDispatcher::ForceFreeAllInstances() {
|
| void PluginDispatcher::OnMsgResourceReply(
|
| const ppapi::proxy::ResourceMessageReplyParams& reply_params,
|
| const IPC::Message& nested_msg) {
|
| - Resource* resource = PpapiGlobals::Get()->GetResourceTracker()->GetResource(
|
| - reply_params.pp_resource());
|
| - if (!resource) {
|
| - NOTREACHED();
|
| - return;
|
| - }
|
| - resource->OnReplyReceived(reply_params, nested_msg);
|
| + DispatchResourceReply(reply_params, nested_msg);
|
| }
|
|
|
| void PluginDispatcher::OnMsgSupportsInterface(
|
|
|