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

Unified Diff: ash/system/tray_accessibility.cc

Issue 11280236: A11y: Add the option to always show the a11y tray menu regardless of the state of a11y features (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years 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 | « ash/system/tray_accessibility.h ('k') | ash/test/test_shell_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/tray_accessibility.cc
diff --git a/ash/system/tray_accessibility.cc b/ash/system/tray_accessibility.cc
index 5474e4eaa1892c287eea180f6beb747be5df6a2e..5ef1aeb2eef7f348d945aa6a65fdcc9bd39ccd95 100644
--- a/ash/system/tray_accessibility.cc
+++ b/ash/system/tray_accessibility.cc
@@ -227,12 +227,9 @@ TrayAccessibility::TrayAccessibility(SystemTray* system_tray)
login_(GetCurrentLoginStatus()) {
DCHECK(Shell::GetInstance()->delegate());
DCHECK(system_tray);
-
- Shell::GetInstance()->AddShellObserver(this);
}
TrayAccessibility::~TrayAccessibility() {
- Shell::GetInstance()->RemoveShellObserver(this);
}
bool TrayAccessibility::GetInitialVisibility() {
@@ -286,7 +283,7 @@ void TrayAccessibility::DestroyDetailedView() {
detailed_ = NULL;
}
-void TrayAccessibility::OnLoginStateChanged(user::LoginStatus status) {
+void TrayAccessibility::UpdateAfterLoginStatusChange(user::LoginStatus status) {
login_ = status;
if (tray_view())
« no previous file with comments | « ash/system/tray_accessibility.h ('k') | ash/test/test_shell_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698