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

Unified Diff: chrome/browser/ui/views/toolbar/wrench_toolbar_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: Created 5 years, 2 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/wrench_toolbar_button.cc
diff --git a/chrome/browser/ui/views/toolbar/wrench_toolbar_button.cc b/chrome/browser/ui/views/toolbar/wrench_toolbar_button.cc
index ff2638fcb45b95756c876da8ef353c2e9bd7340c..b3394703b0ad2b82c0350c270805a4565616e2ba 100644
--- a/chrome/browser/ui/views/toolbar/wrench_toolbar_button.cc
+++ b/chrome/browser/ui/views/toolbar/wrench_toolbar_button.cc
@@ -139,11 +139,9 @@ void WrenchToolbarButton::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));
+ SetImage(
+ views::Button::STATE_NORMAL,
+ gfx::CreatePrimaryVectorIcon(gfx::VectorIconId::BROWSER_TOOLS, color));
}
const char* WrenchToolbarButton::GetClassName() const {

Powered by Google App Engine
This is Rietveld 408576698