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

Unified Diff: ash/common/wm/window_cycle_list.cc

Issue 2775973002: Promotes more accessors from WmShell to Shell (Closed)
Patch Set: feedback 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 | « ash/common/wm/panels/panel_layout_manager.cc ('k') | ash/common/wm_shell.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/wm/window_cycle_list.cc
diff --git a/ash/common/wm/window_cycle_list.cc b/ash/common/wm/window_cycle_list.cc
index 9f9a11040249391c0b76331aa0e6b3c2d6a0297b..f70abf06cd1c9295a857c5e668cb49cc030232d1 100644
--- a/ash/common/wm/window_cycle_list.cc
+++ b/ash/common/wm/window_cycle_list.cc
@@ -9,7 +9,6 @@
#include "ash/common/wm/mru_window_tracker.h"
#include "ash/common/wm/window_state.h"
-#include "ash/common/wm_shell.h"
#include "ash/common/wm_window.h"
#include "ash/public/cpp/shell_window_ids.h"
#include "ash/root_window_controller.h"
@@ -489,7 +488,7 @@ void WindowCycleList::OnWindowDestroying(aura::Window* window) {
new_target_window);
if (windows_.empty()) {
// This deletes us.
- WmShell::Get()->window_cycle_controller()->CancelCycling();
+ Shell::Get()->window_cycle_controller()->CancelCycling();
return;
}
}
@@ -507,7 +506,7 @@ void WindowCycleList::OnDisplayMetricsChanged(const display::Display& display,
->GetDisplayNearestWindow(cycle_ui_widget_->GetNativeView())
.id() &&
(changed_metrics & (DISPLAY_METRIC_BOUNDS | DISPLAY_METRIC_ROTATION))) {
- WmShell::Get()->window_cycle_controller()->CancelCycling();
+ Shell::Get()->window_cycle_controller()->CancelCycling();
// |this| is deleted.
return;
}
« no previous file with comments | « ash/common/wm/panels/panel_layout_manager.cc ('k') | ash/common/wm_shell.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698