WIP: Bug 1749895 - Add missing MOZ_SANDBOX guard for gtest UtilityProcess r=gcp

Differential Revision: https://phabricator.services.mozilla.com/D135873
This commit is contained in:
Alexandre Lissy 2022-01-13 17:00:29 +00:00
parent 3de56eb5f2
commit f60c1538e6

View File

@ -40,9 +40,9 @@ class UtilityProcess : public ::testing::Test {
appShell = do_GetService(NS_APPSHELLSERVICE_CONTRACTID);
#endif // defined(MOZ_WIDGET_ANDROID) || defined(XP_MACOSX)
#ifdef XP_WIN
#if defined(XP_WIN) && defined(MOZ_SANDBOX)
mozilla::SandboxBroker::GeckoDependentInitialize();
#endif // XP_WIN
#endif // defined(XP_WIN) && defined(MOZ_SANDBOX)
setupDone = true;
}