chore: Revert "fix: utility process exit code for graceful termination" (#44717)

Revert "fix: utility process exit code for graceful termination (#44698)"

This reverts commit 36e1a0bf00.
This commit is contained in:
Robo 2024-11-19 13:13:23 +09:00 committed by GitHub
parent 10d967028a
commit 1cae73ba09
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 49 additions and 11 deletions

View file

@ -145,8 +145,8 @@ UtilityProcessWrapper::UtilityProcessWrapper(
}
}
// Watch for service process termination events.
content::ServiceProcessHost::AddObserver(this);
if (!content::ServiceProcessHost::HasObserver(this))
content::ServiceProcessHost::AddObserver(this);
mojo::PendingReceiver<node::mojom::NodeService> receiver =
node_service_remote_.BindNewPipeAndPassReceiver();