Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(213)

Unified Diff: extensions/renderer/guest_view/mime_handler_view/mime_handler_view_container.cc

Issue 2626183003: Switch RemoteWindowProxy to use v8::Context::NewRemoteContext. (Closed)
Patch Set: rebase Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698