Chromium Code Reviews| Index: chrome/browser/upgrade_detector.cc |
| diff --git a/chrome/browser/upgrade_detector.cc b/chrome/browser/upgrade_detector.cc |
| index 55327bd18485316ea8454d51db0968da1b11e4b2..79e062351535b0f08ad751cf2ca7e08fee547c47 100644 |
| --- a/chrome/browser/upgrade_detector.cc |
| +++ b/chrome/browser/upgrade_detector.cc |
| @@ -40,23 +40,7 @@ void UpgradeDetector::RegisterPrefs(PrefRegistrySimple* registry) { |
| int UpgradeDetector::GetIconResourceID(UpgradeNotificationIconType type) { |
| if (type == UPGRADE_ICON_TYPE_BADGE) { |
|
oshima
2014/05/15 18:23:19
I'll remove enum in separate CL.
|
| - // Badges do not exist on Views and Mac OS X. |
| -#if !defined(TOOLKIT_VIEWS) && !defined(OS_MACOSX) |
| - switch (upgrade_notification_stage_) { |
| - case UPGRADE_ANNOYANCE_NONE: |
| - return 0; |
| - case UPGRADE_ANNOYANCE_LOW: |
| - return IDR_UPDATE_BADGE; |
| - case UPGRADE_ANNOYANCE_ELEVATED: |
| - return IDR_UPDATE_BADGE2; |
| - case UPGRADE_ANNOYANCE_HIGH: |
| - return IDR_UPDATE_BADGE3; |
| - case UPGRADE_ANNOYANCE_SEVERE: |
| - return IDR_UPDATE_BADGE3; |
| - case UPGRADE_ANNOYANCE_CRITICAL: |
| - return IDR_UPDATE_BADGE3; |
| - } |
| -#endif |
| + // TODO(oshima): Badges no longer exist. remove this. |
| NOTREACHED(); |
| return 0; |
| } |