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

Unified Diff: ash/common/system/chromeos/palette/common_palette_tool.cc

Issue 2795143005: [Ash] Remove pre-MD code paths from HoverHighlightView (Closed)
Patch Set: estade comments Created 3 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: ash/common/system/chromeos/palette/common_palette_tool.cc
diff --git a/ash/common/system/chromeos/palette/common_palette_tool.cc b/ash/common/system/chromeos/palette/common_palette_tool.cc
index ff1982f9c4a8e5c88d1bf82a445e5715c21ab9ef..b8a049304877eb42f6ab14c345e88f66f0480563 100644
--- a/ash/common/system/chromeos/palette/common_palette_tool.cc
+++ b/ash/common/system/chromeos/palette/common_palette_tool.cc
@@ -90,10 +90,7 @@ views::View* CommonPaletteTool::CreateDefaultView(const base::string16& name) {
highlight_view_ = new HoverHighlightView(this);
highlight_view_->SetBorder(views::CreateEmptyBorder(0, 0, 0, 0));
- const int interior_button_padding = (kMenuButtonSize - kMenuIconSize) / 2;
- highlight_view_->AddIconAndLabelCustomSize(icon, name, false, kMenuIconSize,
- interior_button_padding,
- kTrayPopupPaddingHorizontal);
+ highlight_view_->AddIconAndLabel(icon, name);
highlight_view_->AddRightIcon(check, kMenuIconSize);
highlight_view_->set_custom_height(kMenuButtonSize);

Powered by Google App Engine
This is Rietveld 408576698