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

Unified Diff: extensions/renderer/guest_view/guest_view_internal_custom_bindings.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/guest_view_internal_custom_bindings.cc
diff --git a/extensions/renderer/guest_view/guest_view_internal_custom_bindings.cc b/extensions/renderer/guest_view/guest_view_internal_custom_bindings.cc
index 77bc51f90115172134dee545dd4d04e3e0f5b7bd..d6b9e6dd08278dd2925d5340abc4af67e7b23adf 100644
--- a/extensions/renderer/guest_view/guest_view_internal_custom_bindings.cc
+++ b/extensions/renderer/guest_view/guest_view_internal_custom_bindings.cc
@@ -347,8 +347,7 @@ void GuestViewInternalCustomBindings::GetContentWindow(
if (frame->isWebLocalFrame()) {
window = frame->mainWorldScriptContext()->Global();
} else {
- window =
- frame->toWebRemoteFrame()->deprecatedMainWorldScriptContext()->Global();
+ window = frame->toWebRemoteFrame()->globalProxy();
}
args.GetReturnValue().Set(window);
}

Powered by Google App Engine
This is Rietveld 408576698