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

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

Issue 2696033003: [Ash MD] Remove some non-MD code from HoverHighlightView (Closed)
Patch Set: Created 3 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
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 fa8624c216d6bba223cfb7ea5273ecf3b72b744d..cd492fcf932958b91098d47d1d33947e4be56da7 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