| Index: ppapi/proxy/ppb_file_system_proxy.cc
|
| diff --git a/ppapi/proxy/ppb_file_system_proxy.cc b/ppapi/proxy/ppb_file_system_proxy.cc
|
| index 370dcabfbb618c7d7db9e8d5b8616a84af1d12bb..4619a1f01915dc0ac0a851fee6a31a76f27cfc83 100644
|
| --- a/ppapi/proxy/ppb_file_system_proxy.cc
|
| +++ b/ppapi/proxy/ppb_file_system_proxy.cc
|
| @@ -46,7 +46,7 @@ class FileSystem : public Resource, public PPB_FileSystem_API {
|
|
|
| // PPB_FileSystem_APi implementation.
|
| virtual int32_t Open(int64_t expected_size,
|
| - PP_CompletionCallback callback) OVERRIDE;
|
| + scoped_refptr<TrackedCallback> callback) OVERRIDE;
|
| virtual PP_FileSystemType GetType() OVERRIDE;
|
|
|
| // Called when the host has responded to our open request.
|
| @@ -75,13 +75,13 @@ PPB_FileSystem_API* FileSystem::AsPPB_FileSystem_API() {
|
| }
|
|
|
| int32_t FileSystem::Open(int64_t expected_size,
|
| - PP_CompletionCallback callback) {
|
| + scoped_refptr<TrackedCallback> callback) {
|
| if (TrackedCallback::IsPending(current_open_callback_))
|
| return PP_ERROR_INPROGRESS;
|
| if (called_open_)
|
| return PP_ERROR_FAILED;
|
|
|
| - current_open_callback_ = new TrackedCallback(this, callback);
|
| + current_open_callback_ = callback;
|
| called_open_ = true;
|
| PluginDispatcher::GetForResource(this)->Send(
|
| new PpapiHostMsg_PPBFileSystem_Open(
|
|
|