Index: chrome/renderer/extensions/app_bindings.cc |
diff --git a/chrome/renderer/extensions/app_bindings.cc b/chrome/renderer/extensions/app_bindings.cc |
index af65cc997d230ebfeeaec917bc918d8925686975..7ead4ef766335a72157e65980d691b9f9b397c61 100644 |
--- a/chrome/renderer/extensions/app_bindings.cc |
+++ b/chrome/renderer/extensions/app_bindings.cc |
@@ -112,7 +112,9 @@ void AppBindings::GetDetailsForFrame( |
WebLocalFrame* target_frame = WebLocalFrame::frameForContext(context); |
if (!target_frame) { |
- console::Error(args.GetIsolate()->GetCallingContext(), |
+ ScriptContext* script_context = ScriptContextSet::GetContextByV8Context( |
+ args.GetIsolate()->GetCallingContext()); |
+ console::Error(script_context ? script_context->GetRenderFrame() : nullptr, |
"Could not find frame for specified object."); |
return; |
} |