| Index: content/renderer/dom_automation_controller.cc
|
| diff --git a/content/renderer/dom_automation_controller.cc b/content/renderer/dom_automation_controller.cc
|
| index 33b074523664e7249daefcc9f5aafb18d78ca54d..13191d8bee6d4587acb33bbd9ea411ee516b3d96 100644
|
| --- a/content/renderer/dom_automation_controller.cc
|
| +++ b/content/renderer/dom_automation_controller.cc
|
| @@ -33,6 +33,9 @@ void DomAutomationController::Install(RenderFrame* render_frame,
|
|
|
| gin::Handle<DomAutomationController> controller =
|
| gin::CreateHandle(isolate, new DomAutomationController(render_frame));
|
| + if (controller.IsEmpty())
|
| + return;
|
| +
|
| v8::Handle<v8::Object> global = context->Global();
|
| global->Set(gin::StringToV8(isolate, "domAutomationController"),
|
| controller.ToV8());
|
|
|