From: PF4Public@users.noreply.github.com
License: BSD
Subject: Fix building with use_bluez=false

This is a quick and dirty fix for building electron with use_bluez=false
It prevents initialization and usage of Bluetooth by electron
It is not supposed to be applied for use_bluez=true
disable-bluez.patch should be also applied

---
--- a/shell/browser/lib/power_observer_linux.cc
+++ b/shell/browser/lib/power_observer_linux.cc
@@ -36,8 +36,6 @@
     base::PowerSuspendObserver* suspend_observer)
     : suspend_observer_(suspend_observer),
       lock_owner_name_(GetExecutableBaseName()) {
-  if (!bluez::BluezDBusManager::IsInitialized())
-    bluez::DBusBluezManagerWrapperLinux::Initialize();
 
   auto bus = dbus_thread_linux::GetSharedSystemBus();
   if (!bus) {
--- a/shell/browser/electron_browser_main_parts.cc
+++ b/shell/browser/electron_browser_main_parts.cc
@@ -510,8 +510,6 @@
       std::move(shutdown_cb),
       content::GetUIThreadTaskRunner({content::BrowserTaskType::kUserInput}));
 
-  if (!bluez::BluezDBusManager::IsInitialized())
-    bluez::DBusBluezManagerWrapperLinux::Initialize();
 
   // Set up crypt config. This needs to be done before anything starts the
   // network service, as the raw encryption key needs to be shared with the
