Commit 219d095d authored by Tim Song's avatar Tim Song Committed by Commit Bot

Ash Tray: Close quick settings bubble after pressing ESC in message center.

BUG=1027262

Change-Id: Id6745691e05f337a41de1aff2c5cbda558f85c14
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1929617Reviewed-by: default avatarAhmed Mehfooz <amehfooz@chromium.org>
Commit-Queue: Ahmed Mehfooz <amehfooz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#718777}
parent af123fc5
......@@ -200,8 +200,13 @@ void UnifiedMessageCenterBubble::OnWidgetDestroying(views::Widget* widget) {
CHECK_EQ(bubble_widget_, widget);
tray_->tray_event_filter()->RemoveBubble(this);
tray_->bubble()->unified_view()->RemoveObserver(this);
message_center_view_->RemoveObserver(this);
bubble_widget_->RemoveObserver(this);
bubble_widget_ = nullptr;
// Close the quick settings bubble as well, which may not automatically happen
// when dismissing the message center bubble by pressing ESC.
tray_->CloseBubble();
}
} // namespace ash
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment