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

Unified Diff: chrome/browser/ui/views/bar_control_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/bar_control_button.cc
diff --git a/chrome/browser/ui/views/bar_control_button.cc b/chrome/browser/ui/views/bar_control_button.cc
index 6a7dff06476726bdbdd32d554ab117bbc96c10e3..440ec4a8eacb5b79040912e51de7fbcf48774c19 100644
--- a/chrome/browser/ui/views/bar_control_button.cc
+++ b/chrome/browser/ui/views/bar_control_button.cc
@@ -48,9 +48,9 @@ void BarControlButton::SetIcon(
void BarControlButton::OnThemeChanged() {
SkColor icon_color =
color_utils::DeriveDefaultIconColor(get_text_color_callback_.Run());
- gfx::ImageSkia image = gfx::CreateVectorIcon(id_, 16, icon_color);
+ gfx::ImageSkia image = gfx::CreateVectorIcon(id_, icon_color);
SetImage(views::CustomButton::STATE_NORMAL, &image);
- image = gfx::CreateVectorIcon(id_, 16, SkColorSetA(icon_color, 0xff / 2));
+ image = gfx::CreateVectorIcon(id_, SkColorSetA(icon_color, 0xff / 2));
SetImage(views::CustomButton::STATE_DISABLED, &image);
set_ink_drop_base_color(icon_color);
}

Powered by Google App Engine
This is Rietveld 408576698