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

Unified Diff: chrome/browser/ui/views/profiles/profile_chooser_view.cc

Issue 2876343002: Fix the main profile button avatar having too much padding. (Closed)
Patch Set: Created 3 years, 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/profiles/profile_chooser_view.cc
diff --git a/chrome/browser/ui/views/profiles/profile_chooser_view.cc b/chrome/browser/ui/views/profiles/profile_chooser_view.cc
index 8216b743b3e9628537f26b3fb9029046eabf6621..552b5a346d4d39cba82e007a46ddfe90c4a0ff1c 100644
--- a/chrome/browser/ui/views/profiles/profile_chooser_view.cc
+++ b/chrome/browser/ui/views/profiles/profile_chooser_view.cc
@@ -1304,13 +1304,13 @@ views::View* ProfileChooserView::CreateCurrentProfileView(
views::GridLayout* grid_layout = new views::GridLayout(current_profile_card);
current_profile_card->SetLayoutManager(grid_layout);
views::ColumnSet* columns = grid_layout->AddColumnSet(0);
- columns->AddPaddingColumn(0, kMenuEdgeMargin);
+ // BackgroundColorHoverButton has already accounted for the left and right
+ // margins.
columns->AddColumn(views::GridLayout::FILL, views::GridLayout::FILL, 0,
views::GridLayout::USE_PREF, 0, 0);
columns->AddPaddingColumn(0, kMenuEdgeMargin - kBadgeSpacing);
columns->AddColumn(views::GridLayout::FILL, views::GridLayout::FILL, 1,
views::GridLayout::USE_PREF, 0, 0);
- columns->AddPaddingColumn(0, kMenuEdgeMargin);
grid_layout->AddPaddingRow(0, 0);
const int num_labels =
(avatar_item.signed_in && !switches::IsEnableAccountConsistency()) ? 2
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698