Index: content/browser/renderer_host/render_view_host_impl.cc |
diff --git a/content/browser/renderer_host/render_view_host_impl.cc b/content/browser/renderer_host/render_view_host_impl.cc |
index 14e1545b6b7733572557052b15a5cc5598be65db..ceee91562878262fb985987d44d268a52b08fd32 100644 |
--- a/content/browser/renderer_host/render_view_host_impl.cc |
+++ b/content/browser/renderer_host/render_view_host_impl.cc |
@@ -317,6 +317,11 @@ bool RenderViewHostImpl::CreateRenderView( |
// Let our delegate know that we created a RenderView. |
delegate_->RenderViewCreated(this); |
+ // Since this method creates the main RenderFrame in the renderer process, |
+ // set the proper state on its corresponding RenderFrameHost. |
+ RenderFrameHostImpl::FromID(GetProcess()->GetID(), main_frame_routing_id_) |
+ ->SetRenderFrameCreated(true); |
+ |
return true; |
} |