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); |
} |