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 f0f5808f74fecacce8b0224e4fb4b311ec91de8d..6d41f873516b9a088bb9d4fed4aa3eb8a267dc65 100644 |
--- a/content/browser/frame_host/render_frame_proxy_host.cc |
+++ b/content/browser/frame_host/render_frame_proxy_host.cc |
@@ -44,21 +44,17 @@ |
} |
RenderFrameProxyHost::RenderFrameProxyHost(SiteInstance* site_instance, |
- RenderViewHostImpl* render_view_host, |
FrameTreeNode* frame_tree_node) |
: routing_id_(site_instance->GetProcess()->GetNextRoutingID()), |
site_instance_(site_instance), |
process_(site_instance->GetProcess()), |
frame_tree_node_(frame_tree_node), |
- render_frame_proxy_created_(false), |
- render_view_host_(render_view_host) { |
+ render_frame_proxy_created_(false) { |
GetProcess()->AddRoute(routing_id_, this); |
CHECK(g_routing_id_frame_proxy_map.Get().insert( |
std::make_pair( |
RenderFrameProxyHostID(GetProcess()->GetID(), routing_id_), |
this)).second); |
- CHECK(render_view_host_); |
- frame_tree_node_->frame_tree()->AddRenderViewHostRef(render_view_host_); |
if (!frame_tree_node_->IsMainFrame() && |
frame_tree_node_->parent() |
@@ -86,7 +82,6 @@ |
Send(new FrameMsg_DeleteProxy(routing_id_)); |
} |
- frame_tree_node_->frame_tree()->ReleaseRenderViewHostRef(render_view_host_); |
GetProcess()->RemoveRoute(routing_id_); |
g_routing_id_frame_proxy_map.Get().erase( |
RenderFrameProxyHostID(GetProcess()->GetID(), routing_id_)); |