Chromium Code Reviews| Index: chrome/browser/chromeos/dbus/power_manager_client.cc |
| diff --git a/chrome/browser/chromeos/dbus/power_manager_client.cc b/chrome/browser/chromeos/dbus/power_manager_client.cc |
| index d5f4f2e3a39c3420eaf66b0592786f69a590c264..56cb5a0b53d51e838146a3d975e07cc8b39387ea 100644 |
| --- a/chrome/browser/chromeos/dbus/power_manager_client.cc |
| +++ b/chrome/browser/chromeos/dbus/power_manager_client.cc |
| @@ -208,6 +208,13 @@ class PowerManagerClientImpl : public PowerManagerClient { |
| return; |
| } |
| + // This is a temp hack that will be removed in few days. |
|
satorux1
2011/11/11 21:00:22
Please start the comment with // TODO(tbarzic):
I
tbarzic
2011/11/11 21:09:33
OK
|
| + // Right now power manager sets line_power_on to true if neither line_power |
| + // nor battery system path can't be found. I'm changing that so we can |
| + // detect that device doesn't have battery (e.g. Newton). This is to ensure |
| + // nothing gets broken until real Chrome side patch lands. |
| + status.line_power_on |= !status.battery_is_present; |
| + |
| VLOG(1) << "Power status: " << status.ToString(); |
| FOR_EACH_OBSERVER(Observer, observers_, PowerChanged(status)); |
| } |