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

Unified Diff: chrome/browser/chromeos/status/power_menu_button.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: remove power_manager_client.cc part 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/status/power_menu_button.cc
diff --git a/chrome/browser/chromeos/status/power_menu_button.cc b/chrome/browser/chromeos/status/power_menu_button.cc
index 4783238cd2dd022d577ce2b5a61e9aa14a191e1b..b4523e4d7e790a9ad832eaf2b860b60df1e9f047 100644
--- a/chrome/browser/chromeos/status/power_menu_button.cc
+++ b/chrome/browser/chromeos/status/power_menu_button.cc
@@ -217,6 +217,7 @@ PowerMenuButton::PowerMenuButton(StatusAreaButton::Delegate* delegate)
set_id(VIEW_ID_STATUS_BUTTON_POWER);
UpdateIconAndLabelInfo();
DBusThreadManager::Get()->GetPowerManagerClient()->AddObserver(this);
+ DBusThreadManager::Get()->GetPowerManagerClient()->RequestStatusUpdate();
}
PowerMenuButton::~PowerMenuButton() {
« 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