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

Unified Diff: ash/accelerators/accelerator_controller.cc

Issue 2911393002: Nix GetRootWindowController, use RootWindowController::ForWindow. (Closed)
Patch Set: Sync and rebase AGAIN Created 3 years, 7 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 | ash/accelerators/exit_warning_handler.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 21e54ed274f9af75b29d9ef2a7aee9e9d5028e02..cff2bbf0d451c44d5bda21b1c828b58e641bfd1a 100644
--- a/ash/accelerators/accelerator_controller.cc
+++ b/ash/accelerators/accelerator_controller.cc
@@ -354,7 +354,8 @@ void HandleShowMessageCenterBubble() {
void HandleShowSystemTrayBubble() {
base::RecordAction(UserMetricsAction("Accel_Show_System_Tray_Bubble"));
aura::Window* target_root = Shell::GetRootWindowForNewWindows();
- SystemTray* tray = GetRootWindowController(target_root)->GetSystemTray();
+ SystemTray* tray =
+ RootWindowController::ForWindow(target_root)->GetSystemTray();
if (!tray->HasSystemBubble()) {
tray->ShowDefaultView(BUBBLE_CREATE_NEW);
tray->ActivateBubble();
@@ -526,8 +527,7 @@ void HandleLock() {
void HandleShowStylusTools() {
base::RecordAction(UserMetricsAction("Accel_Show_Stylus_Tools"));
- GetRootWindowController(Shell::GetRootWindowForNewWindows())
- ->shelf()
+ Shelf::ForWindow(Shell::GetRootWindowForNewWindows())
->GetStatusAreaWidget()
->palette_tray()
->ShowPalette();
« no previous file with comments | « no previous file | ash/accelerators/exit_warning_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698