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

Unified Diff: content/browser/frame_host/render_frame_proxy_host.cc

Issue 496283006: Fix RenderFrameProxyHost::GetRenderViewHost for subframes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/frame_host/render_frame_proxy_host.cc
diff --git a/content/browser/frame_host/render_frame_proxy_host.cc b/content/browser/frame_host/render_frame_proxy_host.cc
index 22d5bb75831c7035f283f9ccfdfbd50f6b2914ee..5cbad79015f58ca18e4fd008ab31a396e7e8da7e 100644
--- a/content/browser/frame_host/render_frame_proxy_host.cc
+++ b/content/browser/frame_host/render_frame_proxy_host.cc
@@ -53,9 +53,7 @@ void RenderFrameProxyHost::SetChildRWHView(RenderWidgetHostView* view) {
}
RenderViewHostImpl* RenderFrameProxyHost::GetRenderViewHost() {
- if (render_frame_host_.get())
- return render_frame_host_->render_view_host();
- return NULL;
+ return frame_tree_node_->frame_tree()->GetRenderViewHost(site_instance_);
Charlie Reis 2014/08/22 18:15:15 This follows the pattern from InitRenderFrameProxy
nasko 2014/08/22 18:18:04 The RVH should be created before any RFH/RFPH obje
}
scoped_ptr<RenderFrameHostImpl> RenderFrameProxyHost::PassFrameHostOwnership() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698