Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(330)

Unified Diff: components/nacl/renderer/ppb_nacl_private_impl.cc

Issue 2168523002: Use ChannelMojo for plugin-renderer channels. Base URL: https://chromium.googlesource.com/chromium/src.git@mojo-nacl-ipc-fds
Patch Set: rebase Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/ppapi_plugin/ppapi_thread.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « no previous file | content/ppapi_plugin/ppapi_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698