Index: content/renderer/pepper/pepper_plugin_delegate_impl.cc |
diff --git a/content/renderer/pepper/pepper_plugin_delegate_impl.cc b/content/renderer/pepper/pepper_plugin_delegate_impl.cc |
index 4a0be19471335265b381286ef687de855017dc27..92a7b2ce9087033aba0afe2393888ca3978c68d3 100644 |
--- a/content/renderer/pepper/pepper_plugin_delegate_impl.cc |
+++ b/content/renderer/pepper/pepper_plugin_delegate_impl.cc |
@@ -286,7 +286,8 @@ void DidOpenFileSystemURL( |
// Make sure we won't leak file handle if the requester has died. |
if (file != base::kInvalidPlatformFileValue) { |
base::FileUtilProxy::Close( |
- RenderThreadImpl::current()->GetFileThreadMessageLoopProxy(), file, |
+ RenderThreadImpl::current()->GetFileThreadMessageLoopProxy().get(), |
+ file, |
base::Bind(&DoNotifyCloseFile, file_open_id)); |
} |
} |
@@ -965,7 +966,8 @@ 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, |
+ base::FileUtilProxy::Close(GetFileThreadMessageLoopProxy().get(), |
+ file, |
base::FileUtilProxy::StatusCallback()); |
delete callback; |
} |