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

Unified Diff: chrome/browser/upgrade_detector.cc

Issue 401333002: Simplify a method in UpgradeDetector. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 6 years, 5 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 | « chrome/browser/upgrade_detector.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/upgrade_detector.cc
===================================================================
--- chrome/browser/upgrade_detector.cc (revision 284446)
+++ chrome/browser/upgrade_detector.cc (working copy)
@@ -38,13 +38,7 @@
registry->RegisterBooleanPref(prefs::kAttemptedToEnableAutoupdate, false);
}
-int UpgradeDetector::GetIconResourceID(UpgradeNotificationIconType type) {
- if (type == UPGRADE_ICON_TYPE_BADGE) {
- // TODO(oshima): Badges no longer exist. remove this.
- NOTREACHED();
- return 0;
- }
-
+int UpgradeDetector::GetIconResourceID() {
switch (upgrade_notification_stage_) {
case UPGRADE_ANNOYANCE_NONE:
return 0;
« no previous file with comments | « chrome/browser/upgrade_detector.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698