Make base::PowerMonitor work on Chrome OS.
commit07366580ce28f55f6dd242c9d79e7a1f1b3bef44
authorderat <derat@chromium.org>
Tue, 7 Oct 2014 04:18:44 +0000 (6 21:18 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 7 Oct 2014 04:19:22 +0000 (7 04:19 +0000)
tree478e99d7cd75628ff4904b76114305d17c43db4b
parentba722a2a8ddf967dcadb483ea32d5ad31fc4bdf6
Make base::PowerMonitor work on Chrome OS.

On Chrome OS, updates about the system power status are
received via D-Bus messages on the UI thread. Being in
base/, PowerMonitor can't depend on the code in chromeos/
that receives those messages, so make the Chrome OS code
instead notify PowerMonitor when it receives updates.

BUG=326534

Review URL: https://codereview.chromium.org/622693004

Cr-Commit-Position: refs/heads/master@{#298367}
base/BUILD.gn
base/base.gypi
base/power_monitor/power_monitor_device_source.h
base/power_monitor/power_monitor_device_source_chromeos.cc [new file with mode: 0644]
chromeos/dbus/power_manager_client.cc