Index: extensions/renderer/guest_view/mime_handler_view/mime_handler_view_container.cc |
diff --git a/extensions/renderer/guest_view/mime_handler_view/mime_handler_view_container.cc b/extensions/renderer/guest_view/mime_handler_view/mime_handler_view_container.cc |
index bb13920fe72cc786d2cb1b39b8deb25fc22a6d30..811e3caa9d72ec6a7806aca8cdfa7e889f6c57e3 100644 |
--- a/extensions/renderer/guest_view/mime_handler_view/mime_handler_view_container.cc |
+++ b/extensions/renderer/guest_view/mime_handler_view/mime_handler_view_container.cc |
@@ -242,9 +242,7 @@ void MimeHandlerViewContainer::PostMessage(v8::Isolate* isolate, |
guest_proxy_window = |
guest_proxy_frame->mainWorldScriptContext()->Global(); |
} else { |
- guest_proxy_window = guest_proxy_frame->toWebRemoteFrame() |
- ->deprecatedMainWorldScriptContext() |
- ->Global(); |
+ guest_proxy_window = guest_proxy_frame->toWebRemoteFrame()->globalProxy(); |
} |
gin::Dictionary window_object(isolate, guest_proxy_window); |
v8::Local<v8::Function> post_message; |