Index: content/renderer/stats_collection_controller.cc |
diff --git a/content/renderer/stats_collection_controller.cc b/content/renderer/stats_collection_controller.cc |
index 2a96a532805193f78f56f76b4d2e726cb51b1384..713407942a7f95b34d8e00cf452882b57a3f1bcc 100644 |
--- a/content/renderer/stats_collection_controller.cc |
+++ b/content/renderer/stats_collection_controller.cc |
@@ -87,6 +87,8 @@ void StatsCollectionController::Install(blink::WebFrame* frame) { |
gin::Handle<StatsCollectionController> controller = |
gin::CreateHandle(isolate, new StatsCollectionController()); |
+ if (controller.IsEmpty()) |
+ return; |
v8::Handle<v8::Object> global = context->Global(); |
global->Set(gin::StringToV8(isolate, "statsCollectionController"), |
controller.ToV8()); |