Commit 99a5bab9 authored by Ahmed Mehfooz's avatar Ahmed Mehfooz Committed by Commit Bot

Return from OnWindowActivated if widget has been destroyed

Bug: 1021639
Change-Id: If65812f8a2d961f88fc66c9b060671e7b7d8e8ed
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1900293Reviewed-by: default avatarTim Song <tengs@chromium.org>
Commit-Queue: Tim Song <tengs@chromium.org>
Commit-Queue: Ahmed Mehfooz <amehfooz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#713291}
parent c5ff0bef
......@@ -301,7 +301,7 @@ void UnifiedSystemTrayBubble::OnWidgetDestroying(views::Widget* widget) {
void UnifiedSystemTrayBubble::OnWindowActivated(ActivationReason reason,
aura::Window* gained_active,
aura::Window* lost_active) {
if (!gained_active)
if (!gained_active || !bubble_widget_)
return;
// Don't close the bubble if a transient child is gaining or losing
......
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