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

Unified Diff: extensions/renderer/native_extension_bindings_system.cc

Issue 2722463006: [Extensions Bindings] Notify of event unregistration on invalidation (Closed)
Patch Set: Rebase Created 3 years, 9 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
Index: extensions/renderer/native_extension_bindings_system.cc
diff --git a/extensions/renderer/native_extension_bindings_system.cc b/extensions/renderer/native_extension_bindings_system.cc
index 505f98e01feb5688f3279f873a445236f88fa3b1..f356cb0640d460d9acbc29075777a8d1d7c0b4c7 100644
--- a/extensions/renderer/native_extension_bindings_system.cc
+++ b/extensions/renderer/native_extension_bindings_system.cc
@@ -368,7 +368,10 @@ void NativeExtensionBindingsSystem::DidCreateScriptContext(
}
void NativeExtensionBindingsSystem::WillReleaseScriptContext(
- ScriptContext* context) {}
+ ScriptContext* context) {
+ v8::HandleScope handle_scope(context->isolate());
+ api_system_.WillReleaseContext(context->v8_context());
+}
void NativeExtensionBindingsSystem::UpdateBindingsForContext(
ScriptContext* context) {
« no previous file with comments | « extensions/renderer/event_emitter.cc ('k') | extensions/renderer/native_extension_bindings_system_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698