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

Unified Diff: chrome/browser/ui/views/toolbar/app_menu_button.cc

Issue 1406613002: For some vector icons, get the size from the vector definition. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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/views/toolbar/app_menu_button.cc
diff --git a/chrome/browser/ui/views/toolbar/app_menu_button.cc b/chrome/browser/ui/views/toolbar/app_menu_button.cc
index 450e8f9b5637c098f4524e25dcf93d1693d1b3c0..ca12f2f1d1dd190b9bbe03d43558d92d344fc758 100644
--- a/chrome/browser/ui/views/toolbar/app_menu_button.cc
+++ b/chrome/browser/ui/views/toolbar/app_menu_button.cc
@@ -151,11 +151,8 @@ void AppMenuButton::UpdateIcon() {
break;
}
- // TODO(estade): find a home for this constant.
- const int kButtonSize = 16;
SetImage(views::Button::STATE_NORMAL,
- gfx::CreateVectorIcon(gfx::VectorIconId::BROWSER_TOOLS, kButtonSize,
- color));
+ gfx::CreateVectorIcon(gfx::VectorIconId::BROWSER_TOOLS, color));
}
void AppMenuButton::SetTrailingMargin(int margin) {

Powered by Google App Engine
This is Rietveld 408576698