Index: extensions/renderer/api_bindings_system.cc |
diff --git a/extensions/renderer/api_bindings_system.cc b/extensions/renderer/api_bindings_system.cc |
index fab9fe83ce96f6ea7e64304fb6989b6bd3b43e86..10f20851335341463483647cacdf842d86c576b1 100644 |
--- a/extensions/renderer/api_bindings_system.cc |
+++ b/extensions/renderer/api_bindings_system.cc |
@@ -124,6 +124,10 @@ void APIBindingsSystem::RegisterCustomType(const std::string& type_name, |
custom_types_[type_name] = function; |
} |
+void APIBindingsSystem::WillReleaseContext(v8::Local<v8::Context> context) { |
+ event_handler_.InvalidateContext(context); |
+} |
+ |
v8::Local<v8::Object> APIBindingsSystem::CreateCustomType( |
v8::Local<v8::Context> context, |
const std::string& type_name, |