Bug 1753424 - Remove unused UtilityProcessParent and UtilityProcessManager code r=nika
Differential Revision: https://phabricator.services.mozilla.com/D139816
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user