fix: gtk_init() called 2x in AtomBrowserMainParts (#20012)

Fixes #19984.
This commit is contained in:
trop[bot]
2019-08-29 15:49:28 +09:00
committed by Cheng Zhao
parent 182f63d3a3
commit 080c2c9218

View File

@@ -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();