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

Unified Diff: ash/accelerators/accelerator_controller_delegate_aura.cc

Issue 2330403002: Do not activate system tray bubble by default (Closed)
Patch Set: Do not activate system tray bubble by default Created 4 years, 3 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 | « ash/BUILD.gn ('k') | ash/aura/key_event_watcher_aura.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/accelerators/accelerator_controller_delegate_aura.cc
diff --git a/ash/accelerators/accelerator_controller_delegate_aura.cc b/ash/accelerators/accelerator_controller_delegate_aura.cc
index 8cce14cc6943498a3fc38241ccfbedafdffedb66..f8c755b48aa5271ffb998c1331b3f20ade5601c7 100644
--- a/ash/accelerators/accelerator_controller_delegate_aura.cc
+++ b/ash/accelerators/accelerator_controller_delegate_aura.cc
@@ -197,8 +197,11 @@ void HandleShowSystemTrayBubble() {
base::RecordAction(UserMetricsAction("Accel_Show_System_Tray_Bubble"));
RootWindowController* controller =
RootWindowController::ForTargetRootWindow();
- if (!controller->GetSystemTray()->HasSystemBubble())
- controller->GetSystemTray()->ShowDefaultView(BUBBLE_CREATE_NEW);
+ SystemTray* tray = controller->GetSystemTray();
+ if (!tray->HasSystemBubble()) {
+ tray->ShowDefaultView(BUBBLE_CREATE_NEW);
+ tray->ActivateBubble();
+ }
}
void HandleTakeWindowScreenshot(ScreenshotDelegate* screenshot_delegate) {
« no previous file with comments | « ash/BUILD.gn ('k') | ash/aura/key_event_watcher_aura.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698