From e072213923c1ef317d4f136dfcf5ce1090893031 Mon Sep 17 00:00:00 2001 From: deepak1556 Date: Sat, 16 Dec 2017 14:55:15 +0530 Subject: [PATCH] FIXME: dbus ObjectProxy methods should only be invoked on IO allowed sequence --- atom/browser/ui/x/x_window_utils.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/atom/browser/ui/x/x_window_utils.cc b/atom/browser/ui/x/x_window_utils.cc index 8f5e077708..275c785892 100644 --- a/atom/browser/ui/x/x_window_utils.cc +++ b/atom/browser/ui/x/x_window_utils.cc @@ -8,6 +8,7 @@ #include "base/environment.h" #include "base/strings/string_util.h" +#include "base/threading/thread_restrictions.h" #include "dbus/bus.h" #include "dbus/message.h" #include "dbus/object_proxy.h" @@ -51,6 +52,7 @@ void SetWindowType(::Window xwindow, const std::string& type) { } bool ShouldUseGlobalMenuBar() { + base::ThreadRestrictions::ScopedAllowIO allow_io; std::unique_ptr env(base::Environment::Create()); if (env->HasVar("ELECTRON_FORCE_WINDOW_MENU_BAR")) return false;