| Index: chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm
|
| diff --git a/chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm b/chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm
|
| index efec9e26d994f4de61c49ccfdcf0a7787c549291..dbacedb55c10b49c0194a04406f9fd55bcd548d0 100644
|
| --- a/chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm
|
| +++ b/chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm
|
| @@ -179,13 +179,10 @@ NSImage* GetImageFromResourceID(int resourceId) {
|
| }
|
|
|
| - (base::string16)getElidedAvatarName {
|
| - base::string16 avatarName =
|
| - profiles::GetAvatarNameForProfile(browser_->profile());
|
| + base::string16 name = profiles::GetAvatarNameForProfile(browser_->profile());
|
| int maxTextWidth = kMaxButtonContentWidth - [[button_ image] size].width;
|
| - return gfx::ElideText(avatarName,
|
| - gfx::FontList(gfx::Font([button_ font])),
|
| - maxTextWidth,
|
| - gfx::ELIDE_AT_END);
|
| + return gfx::ElideText(name, gfx::FontList(gfx::Font([button_ font])),
|
| + maxTextWidth, gfx::ELIDE_TAIL);
|
| }
|
|
|
| - (void)updateAvatarButtonAndLayoutParent:(BOOL)layoutParent {
|
|
|