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

Unified Diff: ash/common/system/chromeos/power/tray_power.cc

Issue 2795823002: Remove pre-MD code from PowerStatusView. (Closed)
Patch Set: . Created 3 years, 9 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
Index: ash/common/system/chromeos/power/tray_power.cc
diff --git a/ash/common/system/chromeos/power/tray_power.cc b/ash/common/system/chromeos/power/tray_power.cc
index 8e694e15c41542f9c14ca7a21cdbd7323a2d7ac2..c839c2f3b4b700ff6ef0c4b572269674d83e551c 100644
--- a/ash/common/system/chromeos/power/tray_power.cc
+++ b/ash/common/system/chromeos/power/tray_power.cc
@@ -119,7 +119,7 @@ class PowerTrayView : public TrayItemView {
private:
void UpdateImage() {
const PowerStatus::BatteryImageInfo info =
- PowerStatus::Get()->GetBatteryImageInfo(PowerStatus::ICON_LIGHT);
+ PowerStatus::Get()->GetBatteryImageInfo();
if (info != previous_image_info_) {
image_view()->SetImage(PowerStatus::Get()->GetBatteryImage(info));
previous_image_info_ = info;

Powered by Google App Engine
This is Rietveld 408576698