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

Unified Diff: chrome/browser/chromeos/dbus/power_manager_client.cc

Issue 8491054: Request power status update from power manager when power button view gets created. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nit in a comment Created 9 years, 1 month 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 | chrome/browser/chromeos/status/power_menu_button.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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));
}
« no previous file with comments | « no previous file | chrome/browser/chromeos/status/power_menu_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698