| Index: ppapi/proxy/resource_creation_proxy.cc
|
| diff --git a/ppapi/proxy/resource_creation_proxy.cc b/ppapi/proxy/resource_creation_proxy.cc
|
| index 51dd334d2a07875773b5e08caf594cc1fc7ae49a..b56c52d0ae909390de1fa82d94a3e43929d0b298 100644
|
| --- a/ppapi/proxy/resource_creation_proxy.cc
|
| +++ b/ppapi/proxy/resource_creation_proxy.cc
|
| @@ -7,8 +7,11 @@
|
| #include "ppapi/c/pp_errors.h"
|
| #include "ppapi/c/pp_size.h"
|
| #include "ppapi/c/trusted/ppb_image_data_trusted.h"
|
| +#include "ppapi/proxy/connection.h"
|
| #include "ppapi/proxy/file_chooser_resource.h"
|
| #include "ppapi/proxy/plugin_dispatcher.h"
|
| +#include "ppapi/proxy/plugin_globals.h"
|
| +#include "ppapi/proxy/plugin_proxy_delegate.h"
|
| #include "ppapi/proxy/plugin_resource_tracker.h"
|
| #include "ppapi/proxy/ppapi_messages.h"
|
| #include "ppapi/proxy/ppb_audio_input_proxy.h"
|
| @@ -241,7 +244,7 @@ PP_Resource ResourceCreationProxy::CreateFileChooser(
|
| PP_Instance instance,
|
| PP_FileChooserMode_Dev mode,
|
| const char* accept_types) {
|
| - return (new FileChooserResource(dispatcher(), instance, mode,
|
| + return (new FileChooserResource(GetConnection(), instance, mode,
|
| accept_types))->GetReference();
|
| }
|
|
|
| @@ -354,5 +357,11 @@ bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) {
|
| return false;
|
| }
|
|
|
| +Connection ResourceCreationProxy::GetConnection() {
|
| + return Connection(
|
| + PluginGlobals::Get()->plugin_proxy_delegate()->GetBrowserSender(),
|
| + dispatcher());
|
| +}
|
| +
|
| } // namespace proxy
|
| } // namespace ppapi
|
|
|