Bug 1753424 - Remove unused UtilityProcessParent and UtilityProcessManager code r=nika

Differential Revision: https://phabricator.services.mozilla.com/D139816
This commit is contained in:
Alexandre Lissy
2022-03-26 09:53:45 +00:00
parent a817dd398f
commit 60aa245ec3
5 changed files with 4 additions and 36 deletions

View File

@@ -201,22 +201,6 @@ void UtilityProcessManager::OnProcessUnexpectedShutdown(
DestroyProcess();
}
void UtilityProcessManager::NotifyRemoteActorDestroyed() {
if (!NS_IsMainThread()) {
RefPtr<UtilityProcessManager> self = this;
NS_DispatchToMainThread(NS_NewRunnableFunction(
"UtilityProcessManager::NotifyRemoteActorDestroyed()",
[self]() { self->NotifyRemoteActorDestroyed(); }));
return;
}
// One of the bridged top-level actors for the Utility process has been
// prematurely terminated, and we're receiving a notification. This
// can happen if the ActorDestroy for a bridged protocol fires
// before the ActorDestroy for PUtilityProcessParent.
OnProcessUnexpectedShutdown(mProcess);
}
void UtilityProcessManager::CleanShutdown() { DestroyProcess(); }
void UtilityProcessManager::DestroyProcess() {
@@ -266,7 +250,7 @@ class UtilityMemoryReporter : public MemoryReportingProcess {
}
return parent->SendRequestMemoryReport(aGeneration, aAnonymize,
aMinimizeMemoryUsage, aDMDFile);
aMinimizeMemoryUsage, aDMDFile);
}
int32_t Pid() const override {