chore: refactor safeStorage

This commit is contained in:
Shelley Vohr
2025-11-24 10:10:40 +00:00
committed by GitHub
parent 1f13d25d72
commit c3b20cc66e

View File

@@ -470,6 +470,8 @@ int ElectronBrowserMainParts::PreMainMessageLoopRun() {
DevToolsManagerDelegate::StartHttpHandler();
}
fake_browser_process_->PreMainMessageLoopRun();
#if !BUILDFLAG(IS_MAC)
// The corresponding call in macOS is in ElectronApplicationDelegate.
Browser::Get()->WillFinishLaunching();
@@ -479,8 +481,6 @@ int ElectronBrowserMainParts::PreMainMessageLoopRun() {
// Notify observers that main thread message loop was initialized.
Browser::Get()->PreMainMessageLoopRun();
fake_browser_process_->PreMainMessageLoopRun();
#if BUILDFLAG(IS_WIN)
ui::SelectFileDialog::SetFactory(
std::make_unique<ChromeSelectFileDialogFactory>());