| Index: ash/common/system/tray/tray_details_view.cc
|
| diff --git a/ash/common/system/tray/tray_details_view.cc b/ash/common/system/tray/tray_details_view.cc
|
| index 41b2cf43198138d47df26947b869ada52ba5737b..c34c81bafa848cf0048dcb592ba386d6921b76bd 100644
|
| --- a/ash/common/system/tray/tray_details_view.cc
|
| +++ b/ash/common/system/tray/tray_details_view.cc
|
| @@ -153,8 +153,15 @@ void TrayDetailsView::TransitionToDefaultView() {
|
| // Cache pointer to owner in this function scope. TrayDetailsView will be
|
| // deleted after called ShowDefaultView.
|
| SystemTrayItem* owner = owner_;
|
| - if (title_row_ && title_row_->content() && title_row_->content()->HasFocus())
|
| - owner->set_restore_focus(true);
|
| + if (MaterialDesignController::IsSystemTrayMenuMaterial()) {
|
| + if (back_button_ && back_button_->HasFocus())
|
| + owner->set_restore_focus(true);
|
| + } else {
|
| + if (title_row_ && title_row_->content() &&
|
| + title_row_->content()->HasFocus()) {
|
| + owner->set_restore_focus(true);
|
| + }
|
| + }
|
| owner->system_tray()->ShowDefaultView(BUBBLE_USE_EXISTING);
|
| owner->set_restore_focus(false);
|
| }
|
|
|