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

Unified Diff: chrome/browser/ui/toolbar/app_menu_model.cc

Issue 1676623002: Update upgrade app menu icons for MD/vectorization. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: reduce verbosity Created 4 years, 10 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 | « no previous file | chrome/browser/upgrade_detector.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/toolbar/app_menu_model.cc
diff --git a/chrome/browser/ui/toolbar/app_menu_model.cc b/chrome/browser/ui/toolbar/app_menu_model.cc
index 395265df592623bba224af692e4cae4de1089bb3..23625138ddbe87164b809ab877c35d04fe6f63f3 100644
--- a/chrome/browser/ui/toolbar/app_menu_model.cc
+++ b/chrome/browser/ui/toolbar/app_menu_model.cc
@@ -361,18 +361,10 @@ base::string16 AppMenuModel::GetLabelForCommandId(int command_id) const {
}
bool AppMenuModel::GetIconForCommandId(int command_id, gfx::Image* icon) const {
- ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance();
- switch (command_id) {
- case IDC_UPGRADE_DIALOG: {
- if (UpgradeDetector::GetInstance()->notify_upgrade()) {
- *icon = rb.GetNativeImageNamed(
- UpgradeDetector::GetInstance()->GetIconResourceID());
- return true;
- }
- return false;
- }
- default:
- break;
+ if (command_id == IDC_UPGRADE_DIALOG &&
+ UpgradeDetector::GetInstance()->notify_upgrade()) {
+ *icon = UpgradeDetector::GetInstance()->GetIcon();
+ return true;
}
return false;
}
« no previous file with comments | « no previous file | chrome/browser/upgrade_detector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698