| Index: extensions/renderer/api_bindings_system.cc
|
| diff --git a/extensions/renderer/api_bindings_system.cc b/extensions/renderer/api_bindings_system.cc
|
| index 3014efe2b2db0ff752893c819e0c23a2b1b8fcba..ec062c08203c647df82ba7ffca1120a978e96110 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,
|
|
|