Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(943)

Unified Diff: ash/common/system/tray/system_tray.cc

Issue 2785823002: cros: do not try to activate system tray bubble if it is in process of closing (Closed)
Patch Set: nit Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 463e6fecdb7025529ba95e2c3854ad5c79a7543d..b8e731699a88b026570b6308a64a0e46efb31c73 100644
--- a/ash/common/system/tray/system_tray.cc
+++ b/ash/common/system/tray/system_tray.cc
@@ -698,6 +698,10 @@ void SystemTray::CreateKeyEventWatcher() {
void SystemTray::ActivateBubble() {
TrayBubbleView* bubble_view = GetSystemBubble()->bubble_view();
+ // If system tray bubble is in the process of closing, do not try to activate
+ // bubble.
+ if (bubble_view->GetWidget()->IsClosed())
+ return;
bubble_view->set_can_activate(true);
bubble_view->GetWidget()->Activate();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698