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

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

Issue 2523783002: Top Chrome MD cleanup - get rid of most of GetLayoutInsets. (Closed)
Patch Set: fix typo Created 4 years, 1 month 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 881ec2fbdcadc386449a5a0fdd39f8d4aedb4df1..58937a5e8e183683ccaa0f897d7bba84e8db91cb 100644
--- a/chrome/browser/ui/views/toolbar/app_menu_button.cc
+++ b/chrome/browser/ui/views/toolbar/app_menu_button.cc
@@ -109,8 +109,8 @@ void AppMenuButton::RemoveMenuListener(views::MenuListener* listener) {
gfx::Size AppMenuButton::GetPreferredSize() const {
gfx::Size size(image()->GetPreferredSize());
- gfx::Insets insets(GetLayoutInsets(TOOLBAR_BUTTON));
- size.Enlarge(insets.width(), insets.height());
+ const int pad = GetLayoutConstant(TOOLBAR_BUTTON_PADDING);
+ size.Enlarge(pad * 2, pad * 2);
return size;
}
« no previous file with comments | « chrome/browser/ui/views/omnibox/omnibox_result_view.cc ('k') | chrome/browser/ui/views/toolbar/toolbar_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698