Skip to content

Commit

Permalink
address review comment for 5196547
Browse files Browse the repository at this point in the history
  • Loading branch information
clavin committed Jan 29, 2024
1 parent 4420c34 commit 55e9421
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions shell/browser/electron_browser_main_parts.cc
Expand Up @@ -494,13 +494,6 @@ int ElectronBrowserMainParts::PreMainMessageLoopRun() {

void ElectronBrowserMainParts::WillRunMainMessageLoop(
std::unique_ptr<base::RunLoop>& run_loop) {
#if BUILDFLAG(IS_LINUX)
auto shutdown_cb = base::BindOnce(run_loop->QuitWhenIdleClosure());
ui::OzonePlatform::GetInstance()->PostCreateMainMessageLoop(
std::move(shutdown_cb),
content::GetUIThreadTaskRunner({content::BrowserTaskType::kUserInput}));
#endif

exit_code_ = content::RESULT_CODE_NORMAL_EXIT;
Browser::Get()->SetMainMessageLoopQuitClosure(
run_loop->QuitWhenIdleClosure());
Expand All @@ -511,6 +504,11 @@ void ElectronBrowserMainParts::PostCreateMainMessageLoop() {
std::string app_name = electron::Browser::Get()->GetName();
#endif
#if BUILDFLAG(IS_LINUX)
auto shutdown_cb = base::BindOnce([] { LOG(FATAL) << "Failed to shutdown." });
ui::OzonePlatform::GetInstance()->PostCreateMainMessageLoop(
std::move(shutdown_cb),
content::GetUIThreadTaskRunner({content::BrowserTaskType::kUserInput}));

if (!bluez::BluezDBusManager::IsInitialized())
bluez::DBusBluezManagerWrapperLinux::Initialize();

Expand Down

0 comments on commit 55e9421

Please sign in to comment.