This patch allows to destroy a XWalkExtensionData object
in XWalkExtensionService when a render process is killed.
BUG=TC-2407
Change-Id: Iabdbaa0401b3fd1e1666999b6f240a601e3c25d3
DCHECK(render_process_host_ == host);
if (render_process_host_)
render_process_host_->RemoveObserver(this);
+ // FIXME: Application::RenderProcessExited is not called so run
+ // OnRenderProcessHostGone here.
+ XWalkRunner::GetInstance()->OnRenderProcessHostGone(host);
render_process_host_ = NULL;
web_contents_ = NULL;
}
process_.reset();
if (channel_)
channel_.reset();
+
+ if (delegate_)
+ delegate_->OnExtensionProcessDied(this, render_process_host_->GetID());
}
void XWalkExtensionProcessHost::OnGetExtensionProcessChannel(