mirror of
https://github.com/electron/electron.git
synced 2026-01-09 15:38:08 -05:00
chore: refactor safeStorage
This commit is contained in:
@@ -470,6 +470,8 @@ int ElectronBrowserMainParts::PreMainMessageLoopRun() {
|
|||||||
DevToolsManagerDelegate::StartHttpHandler();
|
DevToolsManagerDelegate::StartHttpHandler();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fake_browser_process_->PreMainMessageLoopRun();
|
||||||
|
|
||||||
#if !BUILDFLAG(IS_MAC)
|
#if !BUILDFLAG(IS_MAC)
|
||||||
// The corresponding call in macOS is in ElectronApplicationDelegate.
|
// The corresponding call in macOS is in ElectronApplicationDelegate.
|
||||||
Browser::Get()->WillFinishLaunching();
|
Browser::Get()->WillFinishLaunching();
|
||||||
@@ -479,8 +481,6 @@ int ElectronBrowserMainParts::PreMainMessageLoopRun() {
|
|||||||
// Notify observers that main thread message loop was initialized.
|
// Notify observers that main thread message loop was initialized.
|
||||||
Browser::Get()->PreMainMessageLoopRun();
|
Browser::Get()->PreMainMessageLoopRun();
|
||||||
|
|
||||||
fake_browser_process_->PreMainMessageLoopRun();
|
|
||||||
|
|
||||||
#if BUILDFLAG(IS_WIN)
|
#if BUILDFLAG(IS_WIN)
|
||||||
ui::SelectFileDialog::SetFactory(
|
ui::SelectFileDialog::SetFactory(
|
||||||
std::make_unique<ChromeSelectFileDialogFactory>());
|
std::make_unique<ChromeSelectFileDialogFactory>());
|
||||||
|
|||||||
Reference in New Issue
Block a user