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

Unified Diff: chrome/browser/ui/ash/system_tray_delegate_utils.cc

Issue 2252823002: Updates to Ash material design icons used for TrayImageItem (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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: chrome/browser/ui/ash/system_tray_delegate_utils.cc
diff --git a/chrome/browser/ui/ash/system_tray_delegate_utils.cc b/chrome/browser/ui/ash/system_tray_delegate_utils.cc
index e314fb05c8f1fe1f67a51d2c9b3c89fd6ee86dd2..470dc685b406468461df2d45ec1f9eb001a6a533 100644
--- a/chrome/browser/ui/ash/system_tray_delegate_utils.cc
+++ b/chrome/browser/ui/ash/system_tray_delegate_utils.cc
@@ -13,18 +13,22 @@ void GetUpdateInfo(const UpgradeDetector* detector, ash::UpdateInfo* info) {
DCHECK(info);
switch (detector->upgrade_notification_stage()) {
case UpgradeDetector::UPGRADE_ANNOYANCE_CRITICAL:
+ info->severity = ash::UpdateInfo::UPDATE_CRITICAL;
+ break;
case UpgradeDetector::UPGRADE_ANNOYANCE_SEVERE:
- info->severity = ash::UpdateInfo::UPDATE_SEVERE_RED;
+ info->severity = ash::UpdateInfo::UPDATE_SEVERE;
break;
case UpgradeDetector::UPGRADE_ANNOYANCE_HIGH:
- info->severity = ash::UpdateInfo::UPDATE_HIGH_ORANGE;
+ info->severity = ash::UpdateInfo::UPDATE_HIGH;
break;
case UpgradeDetector::UPGRADE_ANNOYANCE_ELEVATED:
- info->severity = ash::UpdateInfo::UPDATE_LOW_GREEN;
+ info->severity = ash::UpdateInfo::UPDATE_ELEVATED;
break;
case UpgradeDetector::UPGRADE_ANNOYANCE_LOW:
+ info->severity = ash::UpdateInfo::UPDATE_LOW;
+ break;
case UpgradeDetector::UPGRADE_ANNOYANCE_NONE:
- info->severity = ash::UpdateInfo::UPDATE_NORMAL;
+ info->severity = ash::UpdateInfo::UPDATE_NONE;
break;
}
info->update_required = detector->notify_upgrade();

Powered by Google App Engine
This is Rietveld 408576698