Index: ppapi/proxy/proxy_channel.cc |
diff --git a/ppapi/proxy/proxy_channel.cc b/ppapi/proxy/proxy_channel.cc |
index b7f8a826ce3245bfbf40d203f642b3f58d64514e..c1f48de6b4298296fb4bc8bd5acfa9cc96b8a3d9 100644 |
--- a/ppapi/proxy/proxy_channel.cc |
+++ b/ppapi/proxy/proxy_channel.cc |
@@ -64,11 +64,7 @@ IPC::PlatformFileForTransit ProxyChannel::ShareHandleWithRemote( |
// Channel could be closed if the plugin crashes. |
if (!channel_.get()) { |
if (should_close_source) { |
-#if !defined(OS_NACL) |
- base::ClosePlatformFile(handle); |
-#else |
- close(handle); |
-#endif |
+ base::File file_closer(handle); |
} |
return IPC::InvalidPlatformFileForTransit(); |
} |