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

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

Issue 17517004: cros: Use custom icon for low-power charger notification (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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/system/chromeos/power/tray_power.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/chromeos/power/tray_power.cc
diff --git a/ash/system/chromeos/power/tray_power.cc b/ash/system/chromeos/power/tray_power.cc
index 81ec5612db6883db5f53447585faef05f9125aac..66bd5c5af2ead4013e53f91db9a3d8422c44cd96 100644
--- a/ash/system/chromeos/power/tray_power.cc
+++ b/ash/system/chromeos/power/tray_power.cc
@@ -281,14 +281,6 @@ gfx::ImageSkia TrayPower::GetBatteryImage(int image_index,
}
// static
-gfx::Image TrayPower::GetUsbChargerNotificationImage() {
- // TODO(jamescook): Use a specialized art asset here.
- gfx::ImageSkia icon =
- GetBatteryImage(kNumPowerImages - 1, 0, true, ICON_LIGHT);
- return gfx::Image(icon);
-}
-
-// static
base::string16 TrayPower::GetAccessibleNameString(
const chromeos::PowerSupplyStatus& supply_status) {
ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance();
@@ -443,7 +435,7 @@ bool TrayPower::MaybeShowUsbChargerNotification(
kNotificationId,
rb.GetLocalizedString(IDS_ASH_STATUS_TRAY_LOW_POWER_CHARGER_TITLE),
rb.GetLocalizedString(IDS_ASH_STATUS_TRAY_LOW_POWER_CHARGER_MESSAGE),
- GetUsbChargerNotificationImage(),
+ rb.GetImageNamed(IDR_AURA_NOTIFICATION_LOW_POWER_CHARGER),
base::string16(),
std::string(),
message_center::RichNotificationData(),
« no previous file with comments | « ash/system/chromeos/power/tray_power.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698