chore: bump chromium to 92.0.4511.0 (master) (#29173)
This commit is contained in:
parent
d79ebc6dc6
commit
039f3d5cd2
80 changed files with 426 additions and 322 deletions
|
@ -475,12 +475,12 @@ void ElectronBrowserMainParts::WillRunMainMessageLoop(
|
|||
Browser::Get()->SetMainMessageLoopQuitClosure(run_loop->QuitClosure());
|
||||
}
|
||||
|
||||
void ElectronBrowserMainParts::PostMainMessageLoopStart() {
|
||||
void ElectronBrowserMainParts::PostCreateMainMessageLoop() {
|
||||
#if defined(USE_OZONE)
|
||||
if (features::IsUsingOzonePlatform()) {
|
||||
auto shutdown_cb =
|
||||
base::BindOnce(base::RunLoop::QuitCurrentWhenIdleClosureDeprecated());
|
||||
ui::OzonePlatform::GetInstance()->PostMainMessageLoopStart(
|
||||
ui::OzonePlatform::GetInstance()->PostCreateMainMessageLoop(
|
||||
std::move(shutdown_cb));
|
||||
}
|
||||
#endif
|
||||
|
@ -503,8 +503,7 @@ void ElectronBrowserMainParts::PostMainMessageLoopRun() {
|
|||
// Shutdown the DownloadManager before destroying Node to prevent
|
||||
// DownloadItem callbacks from crashing.
|
||||
for (auto& iter : ElectronBrowserContext::browser_context_map()) {
|
||||
auto* download_manager =
|
||||
content::BrowserContext::GetDownloadManager(iter.second.get());
|
||||
auto* download_manager = iter.second.get()->GetDownloadManager();
|
||||
if (download_manager) {
|
||||
download_manager->Shutdown();
|
||||
}
|
||||
|
@ -528,12 +527,12 @@ void ElectronBrowserMainParts::PostMainMessageLoopRun() {
|
|||
}
|
||||
|
||||
#if !defined(OS_MAC)
|
||||
void ElectronBrowserMainParts::PreMainMessageLoopStart() {
|
||||
PreMainMessageLoopStartCommon();
|
||||
void ElectronBrowserMainParts::PreCreateMainMessageLoop() {
|
||||
PreCreateMainMessageLoopCommon();
|
||||
}
|
||||
#endif
|
||||
|
||||
void ElectronBrowserMainParts::PreMainMessageLoopStartCommon() {
|
||||
void ElectronBrowserMainParts::PreCreateMainMessageLoopCommon() {
|
||||
#if defined(OS_MAC)
|
||||
InitializeMainNib();
|
||||
RegisterURLHandler();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue