Windows: Skip InitializeSandboxInfo if the sandbox is disabled.

Calling InitializeSandboxInfo from inside libcef won’t work unless libcef is
statically linked with the executable, so there's no point in doing so.
See the Chromium sandbox docs for background.
This commit is contained in:
Marshall Greenblatt
2020-04-02 17:36:56 -04:00
parent ec58f88052
commit badf1061f2

View File

@@ -392,7 +392,6 @@ bool CefContext::Initialize(const CefMainArgs& args,
#if defined(OS_WIN)
sandbox::SandboxInterfaceInfo sandbox_info = {0};
if (windows_sandbox_info == nullptr) {
content::InitializeSandboxInfo(&sandbox_info);
windows_sandbox_info = &sandbox_info;
settings_.no_sandbox = true;
}