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

Unified Diff: chrome/browser/ui/views/passwords/credentials_item_view.cc

Issue 2201413002: Show 3 rows in the account chooser. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update a unit test Created 4 years, 4 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 | « chrome/browser/ui/passwords/manage_passwords_view_utils.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/passwords/credentials_item_view.cc
diff --git a/chrome/browser/ui/views/passwords/credentials_item_view.cc b/chrome/browser/ui/views/passwords/credentials_item_view.cc
index 20494169858019632caf6480171a67862d35e487..7996b3d8883289cca8282686a26cfcb7b6cdd894 100644
--- a/chrome/browser/ui/views/passwords/credentials_item_view.cc
+++ b/chrome/browser/ui/views/passwords/credentials_item_view.cc
@@ -102,9 +102,15 @@ CredentialsItemView::CredentialsItemView(
lower_label_ = new views::Label(
lower_text, rb->GetFontList(ui::ResourceBundle::SmallFont));
lower_label_->SetHorizontalAlignment(gfx::ALIGN_LEFT);
+ lower_label_->SetMultiLine(true);
AddChildView(lower_label_);
}
+ if (!upper_text.empty() && !lower_text.empty())
+ SetAccessibleName(upper_text + base::ASCIIToUTF16("\n") + lower_text);
+ else
+ SetAccessibleName(upper_text + lower_text);
+
SetFocusBehavior(FocusBehavior::ALWAYS);
}
« no previous file with comments | « chrome/browser/ui/passwords/manage_passwords_view_utils.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698