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

Unified Diff: components/nacl/loader/nacl_ipc_adapter.cc

Issue 2876493002: Close NaCl IPC channel when the NaClDesc is released (Closed)
Patch Set: Created 3 years, 7 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/nacl/loader/nacl_ipc_adapter.cc
diff --git a/components/nacl/loader/nacl_ipc_adapter.cc b/components/nacl/loader/nacl_ipc_adapter.cc
index dc521ba8f1ea1de923bffc462dbf90c084273430..03d41faed5284e372bc63762069592e5a6a01ecc 100644
--- a/components/nacl/loader/nacl_ipc_adapter.cc
+++ b/components/nacl/loader/nacl_ipc_adapter.cc
@@ -67,7 +67,12 @@ struct DescThunker {
explicit DescThunker(NaClIPCAdapter* adapter_arg)
: adapter(adapter_arg) {
}
+
+ ~DescThunker() { adapter->CloseChannel(); }
+
scoped_refptr<NaClIPCAdapter> adapter;
+
+ DISALLOW_COPY_AND_ASSIGN(DescThunker);
};
NaClIPCAdapter* ToAdapter(void* handle) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698