Bug 1380110 Fix --disable-sandbox by adding #if guards r=bobowen,handyman

MozReview-Commit-ID: ETjN2KTUi4l

--HG--
extra : rebase_source : aab381bd58d09361c86c3fd08a9e9a9b7969159f
This commit is contained in:
Tom Ritter 2017-07-12 09:31:39 -05:00
parent 9d8c9528c4
commit 298109b5e5

View File

@ -4469,9 +4469,11 @@ XREMain::XRE_mainRun()
PR_SetEnv(saved.release());
}
#if defined(MOZ_SANDBOX)
// Call SandboxBroker to cache directories needed for policy rules, this must
// be called after mDirProvider.DoStartup as it needs the profile dir.
SandboxBroker::CacheRulesDirectories();
#endif
#endif
SaveStateForAppInitiatedRestart();