| Index: ash/common/system/tray/system_tray.cc
|
| diff --git a/ash/common/system/tray/system_tray.cc b/ash/common/system/tray/system_tray.cc
|
| index 306c94cb86d3cad10e098956403de13da141afc9..8c2d237b797dc7b1b35fa31870a4692f5f0ae2c0 100644
|
| --- a/ash/common/system/tray/system_tray.cc
|
| +++ b/ash/common/system/tray/system_tray.cc
|
| @@ -136,7 +136,9 @@ class SystemBubbleWrapper {
|
|
|
| // If ChromeVox is enabled, focus the default item if no item is focused and
|
| // there isn't a delayed close.
|
| - if (WmShell::Get()->accessibility_delegate()->IsSpokenFeedbackEnabled() &&
|
| + if (Shell::GetInstance()
|
| + ->accessibility_delegate()
|
| + ->IsSpokenFeedbackEnabled() &&
|
| !is_persistent) {
|
| bubble_->FocusDefaultIfNeeded();
|
| }
|
| @@ -485,7 +487,9 @@ void SystemTray::ShowItems(const std::vector<SystemTrayItem*>& items,
|
| if (system_bubble_.get() && creation_type == BUBBLE_USE_EXISTING) {
|
| system_bubble_->bubble()->UpdateView(items, bubble_type);
|
| // If ChromeVox is enabled, focus the default item if no item is focused.
|
| - if (WmShell::Get()->accessibility_delegate()->IsSpokenFeedbackEnabled())
|
| + if (Shell::GetInstance()
|
| + ->accessibility_delegate()
|
| + ->IsSpokenFeedbackEnabled())
|
| system_bubble_->bubble()->FocusDefaultIfNeeded();
|
| } else {
|
| // Cleanup the existing bubble before showing a new one. Otherwise, it's
|
|
|