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

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

Issue 2063633002: Render Ash material design battery image icon without PNGs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add battery percentage constant Created 4 years, 6 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
« no previous file with comments | « ash/common/system/chromeos/power/power_status_view.cc ('k') | ui/gfx/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 fe82b93393c08b1e3eef9f5ce7383b5e99fbe216..e1f8c1f9e1dc8644a1330956e017870fa2855d17 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 views::ImageView {
const PowerStatus::BatteryImageInfo info =
PowerStatus::Get()->GetBatteryImageInfo(PowerStatus::ICON_LIGHT);
if (info != previous_image_info_) {
- SetImage(PowerStatus::Get()->GetBatteryImage(PowerStatus::ICON_LIGHT));
+ SetImage(PowerStatus::Get()->GetBatteryImage(info));
previous_image_info_ = info;
}
}
« no previous file with comments | « ash/common/system/chromeos/power/power_status_view.cc ('k') | ui/gfx/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698