summaryrefslogtreecommitdiffstats
path: root/extensions/renderer/app_window_custom_bindings.cc
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/renderer/app_window_custom_bindings.cc')
-rw-r--r--extensions/renderer/app_window_custom_bindings.cc14
1 files changed, 1 insertions, 13 deletions
diff --git a/extensions/renderer/app_window_custom_bindings.cc b/extensions/renderer/app_window_custom_bindings.cc
index 02df633..492731d 100644
--- a/extensions/renderer/app_window_custom_bindings.cc
+++ b/extensions/renderer/app_window_custom_bindings.cc
@@ -51,25 +51,13 @@ void AppWindowCustomBindings::GetFrame(
if (!app_frame)
return;
- // TODO(jeremya): it doesn't really make sense to set the opener here, but we
- // need to make sure the security origin is set up before returning the DOM
- // reference. A better way to do this would be to have the browser pass the
- // opener through so opener_id is set in RenderViewImpl's constructor.
- content::RenderFrame* context_render_frame = context()->GetRenderFrame();
- if (!context_render_frame)
- return;
-
- blink::WebFrame* opener = context_render_frame->GetWebFrame();
- blink::WebLocalFrame* app_web_frame = app_frame->GetWebFrame();
- app_web_frame->setOpener(opener);
-
if (notify_browser) {
content::RenderThread::Get()->Send(new ExtensionHostMsg_AppWindowReady(
app_frame->GetRenderView()->GetRoutingID()));
}
v8::Local<v8::Value> window =
- app_web_frame->mainWorldScriptContext()->Global();
+ app_frame->GetWebFrame()->mainWorldScriptContext()->Global();
args.GetReturnValue().Set(window);
}