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

Unified Diff: extensions/renderer/guest_view/guest_view_internal_custom_bindings.cc

Issue 2923053002: Move MainWorldScriptContext accessor/method from WebFrame to WebLocalFrame. (Closed)
Patch Set: . Created 3 years, 6 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 77440eef9d697bf08d4e6f2522866feebbaa5d77..95660f6f625dedc0944ee8438cd0284dbc491aae 100644
--- a/extensions/renderer/guest_view/guest_view_internal_custom_bindings.cc
+++ b/extensions/renderer/guest_view/guest_view_internal_custom_bindings.cc
@@ -346,7 +346,7 @@ void GuestViewInternalCustomBindings::GetContentWindow(
// 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();
+ window = frame->ToWebLocalFrame()->MainWorldScriptContext()->Global();
dcheng 2017/06/06 19:57:17 Perhaps we should provide a WebFrame getter to get
Łukasz Anforowicz 2017/06/07 20:35:07 Yes - thank you for noticing this cleanup opportun
} else {
window = frame->ToWebRemoteFrame()->GlobalProxy();
}

Powered by Google App Engine
This is Rietveld 408576698