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

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

Issue 312233003: Add fade eliding for Views Labels; related cleanup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Refine alignment check; minor additional cleanup. Created 6 years, 6 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/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 c4dc9753eaf8d88ae9ced2d0fff1e83f627b0aed..29ec7e022e14e3822f4794231588c776aa63eb8b 100644
--- a/chrome/browser/ui/views/profiles/profile_chooser_view.cc
+++ b/chrome/browser/ui/views/profiles/profile_chooser_view.cc
@@ -1289,9 +1289,8 @@ void ProfileChooserView::CreateAccountButton(views::GridLayout* layout,
views::LabelButton* email_button = new BackgroundColorHoverButton(
NULL,
- gfx::ElideEmail(base::UTF8ToUTF16(account),
- rb->GetFontList(ui::ResourceBundle::BaseFont),
- available_width),
+ gfx::ElideText(base::UTF8ToUTF16(account), gfx::FontList(),
+ available_width, gfx::ELIDE_EMAIL),
gfx::ImageSkia(),
gfx::ImageSkia());
layout->StartRow(1, 0);
« no previous file with comments | « chrome/browser/ui/views/profiles/new_avatar_button.cc ('k') | chrome/browser/ui/views/screen_capture_notification_ui_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698