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

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

Issue 2801583002: Use views::style for buttons, bootstrap ash_typography to do so. (Closed)
Patch Set: placate gn check. new_avatar_button now just avatar_button 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
Index: chrome/browser/ui/views/profiles/avatar_button.cc
diff --git a/chrome/browser/ui/views/profiles/avatar_button.cc b/chrome/browser/ui/views/profiles/avatar_button.cc
index 6b5ac736d3a02067e925a9bd2fac4370301d64fa..a787cc31389ed9c42f187dffff1e5ffbb5f755fb 100644
--- a/chrome/browser/ui/views/profiles/avatar_button.cc
+++ b/chrome/browser/ui/views/profiles/avatar_button.cc
@@ -86,7 +86,7 @@ AvatarButton::AvatarButton(views::ButtonListener* listener,
// is larger than this, it will be shrunk to match it.
// TODO(noms): Calculate this constant algorithmically from the button's size.
const int kDisplayFontHeight = 16;
- SetFontList(
+ label()->SetFontList(
label()->font_list().DeriveWithHeightUpperBound(kDisplayFontHeight));
#if defined(OS_WIN)

Powered by Google App Engine
This is Rietveld 408576698