| Index: webkit/plugins/ppapi/ppb_file_io_impl.cc
|
| diff --git a/webkit/plugins/ppapi/ppb_file_io_impl.cc b/webkit/plugins/ppapi/ppb_file_io_impl.cc
|
| index d1022709bbf48801b1fad183f63527e9f8349f14..94c4b7bc6357c97d86df20c9ae01592507969d1b 100644
|
| --- a/webkit/plugins/ppapi/ppb_file_io_impl.cc
|
| +++ b/webkit/plugins/ppapi/ppb_file_io_impl.cc
|
| @@ -210,9 +210,13 @@ int32_t PPB_FileIO_Impl::FlushValidated(
|
| void PPB_FileIO_Impl::Close() {
|
| PluginDelegate* plugin_delegate = GetPluginDelegate();
|
| if (file_ != base::kInvalidPlatformFileValue && plugin_delegate) {
|
| + base::FileUtilProxy::StatusCallback callback;
|
| + if (!file_system_url_.is_empty()) {
|
| + callback = plugin_delegate->GetCloseFileSystemURLCallback(
|
| + file_system_url_);
|
| + }
|
| base::FileUtilProxy::Close(
|
| - plugin_delegate->GetFileThreadMessageLoopProxy(), file_,
|
| - base::FileUtilProxy::StatusCallback());
|
| + plugin_delegate->GetFileThreadMessageLoopProxy(), file_, callback);
|
| file_ = base::kInvalidPlatformFileValue;
|
| quota_file_io_.reset();
|
| }
|
|
|