| 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 354b61cd6a1c691083ab920592dcc07f881b4318..cd6aa0cfa93c5e892575cd30100b4ea67883d199 100644
|
| --- a/components/nacl/renderer/ppb_nacl_private_impl.cc
|
| +++ b/components/nacl/renderer/ppb_nacl_private_impl.cc
|
| @@ -130,14 +130,11 @@ class NaClPluginInstance {
|
| explicit NaClPluginInstance(PP_Instance instance)
|
| : nexe_load_manager(instance), pexe_size(0) {}
|
| ~NaClPluginInstance() {
|
| - // Make sure that we do not leak a file descriptor if the NaCl loader
|
| + // Make sure that we do not leak a mojo handle 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
|
| + DCHECK(instance_info->channel_handle.is_mojo_channel_handle());
|
| + instance_info->channel_handle.mojo_handle.Close();
|
| }
|
| }
|
|
|
|
|