diff options
Diffstat (limited to 'src/core/process_main.cpp')
-rw-r--r-- | src/core/process_main.cpp | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/src/core/process_main.cpp b/src/core/process_main.cpp index d661d3b90..ade0f6e99 100644 --- a/src/core/process_main.cpp +++ b/src/core/process_main.cpp @@ -49,20 +49,27 @@ #include "sandbox/mac/seatbelt_exec.h" #endif -namespace QtWebEngine { +namespace QtWebEngineCore { + +#if defined(OS_WIN) +extern sandbox::SandboxInterfaceInfo *staticSandboxInterfaceInfo(sandbox::SandboxInterfaceInfo *info = nullptr); +#endif /*! \internal */ int processMain(int argc, const char **argv) { - QtWebEngineCore::ContentMainDelegateQt delegate; + ContentMainDelegateQt delegate; content::ContentMainParams params(&delegate); #if defined(OS_WIN) HINSTANCE instance_handle = NULL; + params.sandbox_info = staticSandboxInterfaceInfo(); sandbox::SandboxInterfaceInfo sandbox_info = {0}; - content::InitializeSandboxInfo(&sandbox_info); + if (!params.sandbox_info) { + content::InitializeSandboxInfo(&sandbox_info); + params.sandbox_info = &sandbox_info; + } params.instance = instance_handle; - params.sandbox_info = &sandbox_info; #else params.argc = argc; params.argv = argv; @@ -78,4 +85,4 @@ int processMain(int argc, const char **argv) return content::ContentMain(params); } -} // namespace +} // namespace QtWebEngineCore |