FIXME: dbus ObjectProxy methods should only be invoked on IO allowed sequence

This commit is contained in:
deepak1556 2017-12-16 14:55:15 +05:30 committed by Cheng Zhao
parent a1592446da
commit e072213923

View file

@ -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<base::Environment> env(base::Environment::Create());
if (env->HasVar("ELECTRON_FORCE_WINDOW_MENU_BAR"))
return false;