Index: content/browser/frame_host/render_frame_host_impl.cc |
diff --git a/content/browser/frame_host/render_frame_host_impl.cc b/content/browser/frame_host/render_frame_host_impl.cc |
index 9627c08320f003c8623083f7cd7fad1f1ec69f85..935a9cf3a16031b0946842d400212f0beab740f6 100644 |
--- a/content/browser/frame_host/render_frame_host_impl.cc |
+++ b/content/browser/frame_host/render_frame_host_impl.cc |
@@ -166,7 +166,7 @@ |
weak_ptr_factory_(this) { |
bool is_swapped_out = !!(flags & CREATE_RF_SWAPPED_OUT); |
bool hidden = !!(flags & CREATE_RF_HIDDEN); |
- frame_tree_->AddRenderViewHostRef(render_view_host_); |
+ frame_tree_->RegisterRenderFrameHost(this); |
GetProcess()->AddRoute(routing_id_, this); |
g_routing_id_frame_map.Get().insert(std::make_pair( |
RenderFrameHostID(GetProcess()->GetID(), routing_id_), |
@@ -207,7 +207,7 @@ |
// Notify the FrameTree that this RFH is going away, allowing it to shut down |
// the corresponding RenderViewHost if it is no longer needed. |
- frame_tree_->ReleaseRenderViewHostRef(render_view_host_); |
+ frame_tree_->UnregisterRenderFrameHost(this); |
// NULL out the swapout timer; in crash dumps this member will be null only if |
// the dtor has run. |