diff --git a/shell/app/electron_main_win.cc b/shell/app/electron_main_win.cc index cce97c9cee..5878828eee 100644 --- a/shell/app/electron_main_win.cc +++ b/shell/app/electron_main_win.cc @@ -216,10 +216,6 @@ int APIENTRY wWinMain(HINSTANCE instance, HINSTANCE, wchar_t* cmd, int) { return crashpad_status; } - if (process_type.empty()) { - IntegrityCheck(); - } - #if BUILDFLAG(IS_WIN) // access ui native theme here to prevent blocking calls later base::win::AllowDarkModeForApp(true); @@ -233,6 +229,10 @@ int APIENTRY wWinMain(HINSTANCE instance, HINSTANCE, wchar_t* cmd, int) { if (!electron::CheckCommandLineArguments(arguments.argc, arguments.argv)) return -1; + if (process_type.empty()) { + IntegrityCheck(); + } + sandbox::SandboxInterfaceInfo sandbox_info = {nullptr}; content::InitializeSandboxInfo(&sandbox_info); electron::ElectronMainDelegate delegate;