fix: DCHECK on reload when forcefullyCrashRenderer() is called (#30544)

This commit is contained in:
Shelley Vohr 2021-08-18 20:23:06 +02:00 committed by GitHub
parent 29749f3dc6
commit 90b5ba3bed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 2 deletions

View file

@ -951,9 +951,9 @@ void ElectronBrowserClient::RenderProcessReady(
void ElectronBrowserClient::RenderProcessExited(
content::RenderProcessHost* host,
const content::ChildProcessTerminationInfo& info) {
if (delegate_) {
if (delegate_)
static_cast<api::App*>(delegate_)->RenderProcessExited(host);
}
host->RemoveObserver(this);
}
void OnOpenExternal(const GURL& escaped_url, bool allowed) {