From: csagan5 <32685696+csagan5@users.noreply.github.com>
Date: Wed, 11 Oct 2017 22:57:29 +0200
Subject: Disable battery status service

---
 services/device/battery/battery_status_service.cc | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/services/device/battery/battery_status_service.cc b/services/device/battery/battery_status_service.cc
--- a/services/device/battery/battery_status_service.cc
+++ b/services/device/battery/battery_status_service.cc
@@ -41,6 +41,7 @@ BatteryStatusService::AddCallback(const BatteryUpdateCallback& callback) {
   if (!battery_fetcher_)
     battery_fetcher_ = BatteryStatusManager::Create(update_callback_);
 
+#if 0
   if (callback_list_.empty()) {
     bool success = battery_fetcher_->StartListeningBatteryChange();
     // On failure pass the default values back.
@@ -52,6 +53,10 @@ BatteryStatusService::AddCallback(const BatteryUpdateCallback& callback) {
     // Send recent status to the new callback if already available.
     callback.Run(status_);
   }
+#else
+  // Always pass the default values.
+  callback.Run(BatteryStatus());
+#endif
 
   return callback_list_.Add(callback);
 }
-- 
2.7.4

