Commit b622130a authored by Tim Song's avatar Tim Song Committed by Commit Bot

Ash Tray: Fix quick settings not closing after clicking on a notification.

BUG=1024100

Change-Id: Ib30e43689842069e4647f7f455a919c62a3c7844
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1928042Reviewed-by: default avatarAhmed Mehfooz <amehfooz@chromium.org>
Commit-Queue: Ahmed Mehfooz <amehfooz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#717775}
parent 4d4e06dd
......@@ -314,17 +314,13 @@ void UnifiedSystemTrayBubble::OnWindowActivated(ActivationReason reason,
return;
}
// Don't close the bubble if the message center is gaining or losing
// activation.
// Don't close the bubble if the message center is gaining activation.
if (features::IsUnifiedMessageCenterRefactorEnabled() &&
tray_->IsMessageCenterBubbleShown()) {
views::Widget* message_center_widget =
tray_->message_center_bubble()->GetBubbleWidget();
if (message_center_widget ==
views::Widget::GetWidgetForNativeView(gained_active) ||
(lost_active &&
message_center_widget ==
views::Widget::GetWidgetForNativeView(lost_active))) {
views::Widget::GetWidgetForNativeView(gained_active)) {
return;
}
}
......
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