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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/ash/system_tray_delegate_utils.h" 5 #include "chrome/browser/ui/ash/system_tray_delegate_utils.h"
6 6
7 #include "ash/common/system/tray/system_tray_delegate.h" 7 #include "ash/common/system/tray/system_tray_delegate.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "chrome/browser/upgrade_detector.h" 9 #include "chrome/browser/upgrade_detector.h"
10 10
11 void GetUpdateInfo(const UpgradeDetector* detector, ash::UpdateInfo* info) { 11 void GetUpdateInfo(const UpgradeDetector* detector, ash::UpdateInfo* info) {
12 DCHECK(detector); 12 DCHECK(detector);
13 DCHECK(info); 13 DCHECK(info);
14 switch (detector->upgrade_notification_stage()) { 14 switch (detector->upgrade_notification_stage()) {
15 case UpgradeDetector::UPGRADE_ANNOYANCE_CRITICAL: 15 case UpgradeDetector::UPGRADE_ANNOYANCE_CRITICAL:
16 info->severity = ash::UpdateInfo::UPDATE_CRITICAL;
17 break;
16 case UpgradeDetector::UPGRADE_ANNOYANCE_SEVERE: 18 case UpgradeDetector::UPGRADE_ANNOYANCE_SEVERE:
17 info->severity = ash::UpdateInfo::UPDATE_SEVERE_RED; 19 info->severity = ash::UpdateInfo::UPDATE_SEVERE;
18 break; 20 break;
19 case UpgradeDetector::UPGRADE_ANNOYANCE_HIGH: 21 case UpgradeDetector::UPGRADE_ANNOYANCE_HIGH:
20 info->severity = ash::UpdateInfo::UPDATE_HIGH_ORANGE; 22 info->severity = ash::UpdateInfo::UPDATE_HIGH;
21 break; 23 break;
22 case UpgradeDetector::UPGRADE_ANNOYANCE_ELEVATED: 24 case UpgradeDetector::UPGRADE_ANNOYANCE_ELEVATED:
23 info->severity = ash::UpdateInfo::UPDATE_LOW_GREEN; 25 info->severity = ash::UpdateInfo::UPDATE_ELEVATED;
24 break; 26 break;
25 case UpgradeDetector::UPGRADE_ANNOYANCE_LOW: 27 case UpgradeDetector::UPGRADE_ANNOYANCE_LOW:
28 info->severity = ash::UpdateInfo::UPDATE_LOW;
29 break;
26 case UpgradeDetector::UPGRADE_ANNOYANCE_NONE: 30 case UpgradeDetector::UPGRADE_ANNOYANCE_NONE:
27 info->severity = ash::UpdateInfo::UPDATE_NORMAL; 31 info->severity = ash::UpdateInfo::UPDATE_NONE;
28 break; 32 break;
29 } 33 }
30 info->update_required = detector->notify_upgrade(); 34 info->update_required = detector->notify_upgrade();
31 info->factory_reset_required = detector->is_factory_reset_required(); 35 info->factory_reset_required = detector->is_factory_reset_required();
32 } 36 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698