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

Fixes #19984.
This commit is contained in:
Charles Kerr 2019-08-28 12:36:03 -05:00 committed by GitHub
parent 538c4763cf
commit 217ed9aabc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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