Index: components/nacl/renderer/ppb_nacl_private_impl.cc |
diff --git a/components/nacl/renderer/ppb_nacl_private_impl.cc b/components/nacl/renderer/ppb_nacl_private_impl.cc |
index 98d16f3ac85e6b2b096d3b685a50b52a4df1340d..0957f2b045453cd00ad9ed14e82d740ec7c27cc9 100644 |
--- a/components/nacl/renderer/ppb_nacl_private_impl.cc |
+++ b/components/nacl/renderer/ppb_nacl_private_impl.cc |
@@ -132,13 +132,8 @@ class NaClPluginInstance { |
~NaClPluginInstance() { |
// Make sure that we do not leak a file descriptor if the NaCl loader |
// process never called ppapi_start() to initialize PPAPI. |
- if (instance_info) { |
-#if defined(OS_WIN) |
- base::win::ScopedHandle closer(instance_info->channel_handle.pipe.handle); |
-#else |
- base::ScopedFD closer(instance_info->channel_handle.socket.fd); |
-#endif |
- } |
+ if (instance_info) |
+ instance_info->channel_handle.mojo_handle.Close(); |
} |
NexeLoadManager nexe_load_manager; |