Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2569)

Unified Diff: device/battery/battery_status_manager_linux.cc

Issue 1263353004: Fix non-working battery status manager on Linux. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/battery/battery_status_manager_linux.cc
diff --git a/device/battery/battery_status_manager_linux.cc b/device/battery/battery_status_manager_linux.cc
index 7fdd86f4a8e60e4e00ed94556341a185e8bc0182..0b2da63d0f1c1f769ef0c45288a0a6112525ea94 100644
--- a/device/battery/battery_status_manager_linux.cc
+++ b/device/battery/battery_status_manager_linux.cc
@@ -274,6 +274,7 @@ class BatteryStatusManagerLinux : public BatteryStatusManager {
private:
// BatteryStatusManager:
bool StartListeningBatteryChange() override {
+ if (!StartNotifierThreadIfNecessary())
return false;
notifier_thread_->message_loop()->PostTask(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698