| Index: components/guest_view/renderer/guest_view_request.cc
|
| diff --git a/components/guest_view/renderer/guest_view_request.cc b/components/guest_view/renderer/guest_view_request.cc
|
| index ea96bc9b3c73c4094ece473c478d151abd856000..b9be45503d6114dbb5a0bab1669a27df897437d7 100644
|
| --- a/components/guest_view/renderer/guest_view_request.cc
|
| +++ b/components/guest_view/renderer/guest_view_request.cc
|
| @@ -91,14 +91,7 @@ void GuestViewAttachRequest::HandleResponse(const IPC::Message& message) {
|
|
|
| v8::HandleScope handle_scope(isolate());
|
| blink::WebFrame* frame = guest_proxy_render_view->GetWebView()->MainFrame();
|
| - // TODO(lazyboy,nasko): The WebLocalFrame branch is not used when running
|
| - // on top of out-of-process iframes. Remove it once the code is converted.
|
| - v8::Local<v8::Value> window;
|
| - if (frame->IsWebLocalFrame()) {
|
| - window = frame->MainWorldScriptContext()->Global();
|
| - } else {
|
| - window = frame->ToWebRemoteFrame()->GlobalProxy();
|
| - }
|
| + v8::Local<v8::Value> window = frame->GlobalProxy();
|
|
|
| const int argc = 1;
|
| std::unique_ptr<v8::Local<v8::Value>[]> argv(new v8::Local<v8::Value>[argc]);
|
|
|