diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/core/process_main.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/core/process_main.cpp b/src/core/process_main.cpp index a8c1b3ad5..56a79cb13 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 } } |