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

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

Issue 2562113003: NaCl plugin: Make ServiceRuntime::Shutdown() kill the NaCl loader (Closed)
Patch Set: Created 4 years 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 | « components/nacl/renderer/ppb_nacl_private.h ('k') | no next file » | 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 fd9657dbf6048ee86a4141110fb5a62d9a2988a9..efc575d21027a8066cf9ec4e3346631c3bfa8273 100644
--- a/components/nacl/renderer/ppb_nacl_private_impl.cc
+++ b/components/nacl/renderer/ppb_nacl_private_impl.cc
@@ -882,6 +882,13 @@ void PPBNaClPrivate::InstanceDestroyed(PP_Instance instance) {
map.erase(iter);
}
+// static
+void PPBNaClPrivate::TerminateNaClLoader(PP_Instance instance) {
+ auto* load_mgr = GetNexeLoadManager(instance);
+ if (load_mgr)
+ load_mgr->CloseTrustedPluginChannel();
+}
+
namespace {
PP_Bool NaClDebugEnabledForURL(const char* alleged_nmf_url) {
« no previous file with comments | « components/nacl/renderer/ppb_nacl_private.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698