| Index: chrome/browser/ui/views/profiles/new_avatar_button.cc
|
| diff --git a/chrome/browser/ui/views/profiles/new_avatar_button.cc b/chrome/browser/ui/views/profiles/new_avatar_button.cc
|
| index 99a62030508db329d3e8417a9fcc0b35cf0dbeee..660638baaed264130b5dbbd568721a84808b52ed 100644
|
| --- a/chrome/browser/ui/views/profiles/new_avatar_button.cc
|
| +++ b/chrome/browser/ui/views/profiles/new_avatar_button.cc
|
| @@ -18,6 +18,8 @@
|
|
|
| namespace {
|
|
|
| +const int kDisplayFontHeight = 15;
|
| +
|
| scoped_ptr<views::Border> CreateBorder(const int normal_image_set[],
|
| const int hot_image_set[],
|
| const int pushed_image_set[]) {
|
| @@ -59,6 +61,9 @@ NewAvatarButton::NewAvatarButton(
|
| gfx::ShadowValue(gfx::Point(), 1.0f, SK_ColorDKGRAY)));
|
| SetTextSubpixelRenderingEnabled(false);
|
|
|
| + // Shrink large fonts to make them fit.
|
| + SetFontList(GetFontList().DeriveWithHeightUpperBound(kDisplayFontHeight));
|
| +
|
| ui::ResourceBundle* rb = &ui::ResourceBundle::GetSharedInstance();
|
| if (button_style == THEMED_BUTTON) {
|
| const int kNormalImageSet[] = IMAGE_GRID(IDR_AVATAR_THEMED_BUTTON_NORMAL);
|
|
|