| Index: content/renderer/pepper/pepper_plugin_delegate_impl.cc
|
| ===================================================================
|
| --- content/renderer/pepper/pepper_plugin_delegate_impl.cc (revision 214295)
|
| +++ content/renderer/pepper/pepper_plugin_delegate_impl.cc (working copy)
|
| @@ -574,10 +574,12 @@
|
| IPC::PlatformFileForTransitToPlatformFile(file_for_transit);
|
| 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().get(),
|
| - file,
|
| - base::FileUtilProxy::StatusCallback());
|
| + if (file != base::kInvalidPlatformFileValue) {
|
| + base::FileUtilProxy::Close(
|
| + RenderThreadImpl::current()->GetFileThreadMessageLoopProxy().get(),
|
| + file,
|
| + base::FileUtilProxy::StatusCallback());
|
| + }
|
| delete callback;
|
| }
|
|
|
| @@ -610,11 +612,6 @@
|
| last_mouse_event_target_ = NULL;
|
| }
|
|
|
| -scoped_refptr<base::MessageLoopProxy>
|
| -PepperPluginDelegateImpl::GetFileThreadMessageLoopProxy() {
|
| - return RenderThreadImpl::current()->GetFileThreadMessageLoopProxy();
|
| -}
|
| -
|
| void PepperPluginDelegateImpl::RegisterTCPSocket(
|
| PPB_TCPSocket_Private_Impl* socket,
|
| uint32 socket_id) {
|
|
|