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

Unified Diff: ash/accelerators/accelerator_controller.cc

Issue 11476033: [Launcher per display] Removed Shell::status_area_widget(), system_tray() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix style Created 8 years 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 | ash/extended_desktop_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/accelerators/accelerator_controller.cc
diff --git a/ash/accelerators/accelerator_controller.cc b/ash/accelerators/accelerator_controller.cc
index 5a6736639a1689ed52ae92fcc8d34a3068352da1..66864e9b5e43d200a28f55f8f6925973c4551f44 100644
--- a/ash/accelerators/accelerator_controller.cc
+++ b/ash/accelerators/accelerator_controller.cc
@@ -633,10 +633,15 @@ bool AcceleratorController::PerformAction(int action,
return true;
}
break;
- case SHOW_SYSTEM_TRAY_BUBBLE:
- if (!shell->system_tray()->HasSystemBubble())
- shell->system_tray()->ShowDefaultView(BUBBLE_CREATE_NEW);
+ case SHOW_SYSTEM_TRAY_BUBBLE: {
+ internal::RootWindowController* controller =
+ Shell::IsLauncherPerDisplayEnabled() ?
+ internal::RootWindowController::ForActiveRootWindow() :
+ Shell::GetPrimaryRootWindowController();
+ if (!controller->GetSystemTray()->HasSystemBubble())
+ controller->GetSystemTray()->ShowDefaultView(BUBBLE_CREATE_NEW);
break;
+ }
case SHOW_TASK_MANAGER:
Shell::GetInstance()->delegate()->ShowTaskManager();
return true;
« no previous file with comments | « no previous file | ash/extended_desktop_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698