Bug 1706374 - Part 12b: Use NodeController for primary process channels, r=handyman

This extends on the changes in part 12a and consumes the new PortRef-based API
in all existing process types other than the fork server. The IPDL C++ unit
tests were already broken before this change, and were not updated.

Differential Revision: https://phabricator.services.mozilla.com/D112777
This commit is contained in:
Nika Layzell
2021-06-21 21:53:11 +00:00
parent 14a537a918
commit b714ce278a
30 changed files with 51 additions and 56 deletions

View File

@@ -139,7 +139,7 @@ void GPUProcessHost::InitAfterConnect(bool aSucceeded) {
mProcessToken = ++sProcessTokenCounter;
mGPUChild = MakeUnique<GPUChild>(this);
DebugOnly<bool> rv = mGPUChild->Open(
TakeChannel(), base::GetProcId(GetChildProcessHandle()));
TakeInitialPort(), base::GetProcId(GetChildProcessHandle()));
MOZ_ASSERT(rv);
mGPUChild->Init();