Bug 1731564: Use motivated SpinEventLoopUntil inside security/*. r=bobowen

Depends on D127231

Differential Revision: https://phabricator.services.mozilla.com/D127232
This commit is contained in:
Jens Stutte 2021-10-06 19:45:15 +00:00
Родитель 09fbcfad19
Коммит 7b6bc8c02e
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -90,7 +90,8 @@ bool RemoteSandboxBroker::LaunchApp(
->Then(target, __func__, std::move(resolve), std::move(reject));
// Spin the event loop while the sandbox launcher process launches.
SpinEventLoopUntil([&]() { return res != Pending; });
SpinEventLoopUntil("RemoteSandboxBroker::LaunchApp"_ns,
[&]() { return res != Pending; });
if (res == Failed) {
return false;