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

Unified Diff: ash/system/logout_button/tray_logout_button.cc

Issue 11421167: Fixed non-speaking Sign out buttons. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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 | « no previous file | ash/system/user/tray_user.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/logout_button/tray_logout_button.cc
diff --git a/ash/system/logout_button/tray_logout_button.cc b/ash/system/logout_button/tray_logout_button.cc
index 9820c40d415772329b0ac6081246396e38565ce8..202652978d1b19c36aeb9ab894c52a90b4595a13 100644
--- a/ash/system/logout_button/tray_logout_button.cc
+++ b/ash/system/logout_button/tray_logout_button.cc
@@ -86,7 +86,10 @@ class LogoutButton : public views::LabelButton,
void OnLoginStatusChanged(user::LoginStatus status) {
login_status_ = status;
- SetText(GetLocalizedSignOutStringForStatus(login_status_, false));
+ const string16 title = GetLocalizedSignOutStringForStatus(login_status_,
+ false);
+ SetText(title);
+ SetAccessibleName(title);
UpdateVisibility();
}
« no previous file with comments | « no previous file | ash/system/user/tray_user.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698