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

Unified Diff: extensions/renderer/native_extension_bindings_system.cc

Issue 2722463006: [Extensions Bindings] Notify of event unregistration on invalidation (Closed)
Patch Set: . Created 3 years, 10 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 b8aa63d576d726e32b98f55496033969d85bd00c..fa6eb4e994fd128ce16da0373777009f898bdc63 100644
--- a/extensions/renderer/native_extension_bindings_system.cc
+++ b/extensions/renderer/native_extension_bindings_system.cc
@@ -343,7 +343,9 @@ void NativeExtensionBindingsSystem::DidCreateScriptContext(
ScriptContext* context) {}
void NativeExtensionBindingsSystem::WillReleaseScriptContext(
- ScriptContext* context) {}
+ ScriptContext* context) {
+ api_system_.WillReleaseContext(context->v8_context());
+}
void NativeExtensionBindingsSystem::UpdateBindingsForContext(
ScriptContext* context) {
« extensions/renderer/event_emitter.cc ('K') | « extensions/renderer/event_emitter.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698