Commit f2a3ae95 authored by Ken Rockot's avatar Ken Rockot

Revert "Fix MojoApplicationHost assertion when navigating from RenderProcessGone."

This reverts commit 101f015e.

Causing http://crbug.com/456224.

While this original CL should be fine, it's not; we need
to revert until we understand why.

R=marshall@chromium.org
BUG=456224

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

Cr-Commit-Position: refs/heads/master@{#315101}
parent c768e430
......@@ -2075,10 +2075,6 @@ void RenderProcessHostImpl::ProcessDied(bool already_dead,
#endif
RemoveUserData(kSessionStorageHolderKey);
// RenderProcessGone handlers might navigate or perform other actions that
// require a connection. Ensure that there is one before calling them.
mojo_application_host_.reset(new MojoApplicationHost);
IDMap<IPC::Listener>::iterator iter(&listeners_);
while (!iter.IsAtEnd()) {
iter.GetCurrentValue()->OnMessageReceived(
......@@ -2088,6 +2084,8 @@ void RenderProcessHostImpl::ProcessDied(bool already_dead,
iter.Advance();
}
mojo_application_host_.reset(new MojoApplicationHost);
// It's possible that one of the calls out to the observers might have caused
// this object to be no longer needed.
if (delayed_cleanup_needed_)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment