Index: content/renderer/pepper_plugin_delegate_impl.cc |
diff --git a/content/renderer/pepper_plugin_delegate_impl.cc b/content/renderer/pepper_plugin_delegate_impl.cc |
index 35fc894bdbdf8fa579743e198afcdf54c9ff3c84..d5727b3eb5b185c1233f51fef925e15282de8e94 100644 |
--- a/content/renderer/pepper_plugin_delegate_impl.cc |
+++ b/content/renderer/pepper_plugin_delegate_impl.cc |
@@ -1041,7 +1041,10 @@ void PepperPluginDelegateImpl::OnAsyncFileOpened( |
callback->Run(error_code, base::PassPlatformFile(&file)); |
// Make sure we won't leak file handle if the requester has died. |
if (file != base::kInvalidPlatformFileValue) |
- base::FileUtilProxy::Close(GetFileThreadMessageLoopProxy(), file, NULL); |
+ GetFileThreadMessageLoopProxy()->PostTask( |
+ FROM_HERE, |
+ base::IgnoreReturn(base::Callback<bool(void)>( |
+ base::Bind(&base::ClosePlatformFile, file)))); |
delete callback; |
} |
@@ -1254,8 +1257,10 @@ class AsyncOpenFileSystemURLCallbackTranslator |
callback_.Run(base::PLATFORM_FILE_OK, base::PassPlatformFile(&file)); |
// Make sure we won't leak file handle if the requester has died. |
if (file != base::kInvalidPlatformFileValue) { |
- base::FileUtilProxy::Close(RenderThreadImpl::current()-> |
- GetFileThreadMessageLoopProxy(), file, NULL); |
+ RenderThreadImpl::current()->GetFileThreadMessageLoopProxy()->PostTask( |
+ FROM_HERE, |
+ base::IgnoreReturn(base::Callback<bool(void)>( |
+ base::Bind(&base::ClosePlatformFile, file)))); |
} |
} |