Fix MojoApplicationHost assertion when navigating from RenderProcessGone.
commit101f015eb605098054517fdc98de1665a9bb1431
authormarshall <marshall@chromium.org>
Tue, 3 Feb 2015 23:38:08 +0000 (3 15:38 -0800)
committerCommit bot <commit-bot@chromium.org>
Tue, 3 Feb 2015 23:39:25 +0000 (3 23:39 +0000)
tree756124876bbfcd9fda8e36359c06f44032b85050
parent021afc1ba9d65533bb6f51257e0d44549c271dd7
Fix MojoApplicationHost assertion when navigating from RenderProcessGone.

Termination of a renderer process results in a call to
WebContentsObserver::RenderProcessGone. Navigating from
RenderProcessGone using NavigationControllerImpl::Reload or LoadURL
results in an assertion due to MojoApplicationHost::Init() being called
again on an already initialized host. Reset |mojo_application_host_| in
RenderProcessHostImpl::ProcessDied before calling
ViewHostMsg_RenderProcessGone message handlers to avoid this problem.

BUG=448435

Review URL: https://codereview.chromium.org/848073002

Cr-Commit-Position: refs/heads/master@{#314435}
content/browser/renderer_host/render_process_host_impl.cc