diff --git a/src/core/process_main.cpp b/src/core/process_main.cpp index a8c1b3ad5b0108d95b0189c9923f985b6fc8b1de..56a79cb13ac3607447755e6ef2ec94615bdbdd43 100644 --- a/src/core/process_main.cpp +++ b/src/core/process_main.cpp @@ -43,12 +43,23 @@ #include "content_main_delegate_qt.h" #include "content/public/app/content_main.h" +#if defined(OS_WIN) +#include "sandbox/win/src/sandbox_types.h" +#include "content/public/app/startup_helper_win.h" +#endif // OS_WIN namespace QtWebEngine { int processMain(int argc, const char **argv) { +#if defined(OS_WIN) + HINSTANCE instance_handle = NULL; + sandbox::SandboxInterfaceInfo sandbox_info = {0}; + content::InitializeSandboxInfo(&sandbox_info); + return content::ContentMain(instance_handle, &sandbox_info, new ContentMainDelegateQt); +#else return content::ContentMain(argc, argv, new ContentMainDelegateQt); +#endif // OS_WIN } }