From 217ed9aabc1186fa5fdd0ddd7c7d85710bf34a5c Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Wed, 28 Aug 2019 12:36:03 -0500 Subject: [PATCH] fix: gtk_init() called 2x in AtomBrowserMainParts (#19986) Fixes #19984. --- shell/browser/atom_browser_main_parts.cc | 4 ---- 1 file changed, 4 deletions(-) diff --git a/shell/browser/atom_browser_main_parts.cc b/shell/browser/atom_browser_main_parts.cc index 14d4ab14e7..7bf7007d5e 100644 --- a/shell/browser/atom_browser_main_parts.cc +++ b/shell/browser/atom_browser_main_parts.cc @@ -460,10 +460,6 @@ void AtomBrowserMainParts::PreMainMessageLoopRun() { if (command_line->HasSwitch(switches::kRemoteDebuggingPort)) DevToolsManagerDelegate::StartHttpHandler(); -#if defined(USE_X11) - libgtkui::GtkInitFromCommandLine(*base::CommandLine::ForCurrentProcess()); -#endif - #if !defined(OS_MACOSX) // The corresponding call in macOS is in AtomApplicationDelegate. Browser::Get()->WillFinishLaunching();