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

Unified Diff: chrome/browser/ui/ash/multi_user/user_switch_animator_chromeos.cc

Issue 2115663002: Folds methods in WmShellCommon to WmShell (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 4 years, 6 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 | « chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/ash/multi_user/user_switch_animator_chromeos.cc
diff --git a/chrome/browser/ui/ash/multi_user/user_switch_animator_chromeos.cc b/chrome/browser/ui/ash/multi_user/user_switch_animator_chromeos.cc
index 4164e088e3b0185d0969e8aa3cca7022f04b3f32..42ecfd6553d8fab0417b3c691e1b392c91ea04ca 100644
--- a/chrome/browser/ui/ash/multi_user/user_switch_animator_chromeos.cc
+++ b/chrome/browser/ui/ash/multi_user/user_switch_animator_chromeos.cc
@@ -8,6 +8,7 @@
#include "ash/common/wm/mru_window_tracker.h"
#include "ash/common/wm/window_positioner.h"
#include "ash/common/wm/window_state.h"
+#include "ash/common/wm_shell.h"
#include "ash/desktop_background/user_wallpaper_delegate.h"
#include "ash/root_window_controller.h"
#include "ash/shelf/shelf_layout_manager.h"
@@ -38,13 +39,12 @@ class UserChangeActionDisabler {
public:
UserChangeActionDisabler() {
ash::WindowPositioner::DisableAutoPositioning(true);
- ash::Shell::GetInstance()->mru_window_tracker()->SetIgnoreActivations(true);
+ ash::WmShell::Get()->mru_window_tracker()->SetIgnoreActivations(true);
}
~UserChangeActionDisabler() {
ash::WindowPositioner::DisableAutoPositioning(false);
- ash::Shell::GetInstance()->mru_window_tracker()->SetIgnoreActivations(
- false);
+ ash::WmShell::Get()->mru_window_tracker()->SetIgnoreActivations(false);
}
private:
@@ -363,10 +363,8 @@ void UserSwitchAnimatorChromeOS::TransitionWindows(
}
case ANIMATION_STEP_FINALIZE: {
// Reactivate the MRU window of the new user.
- aura::Window::Windows mru_list =
- ash::WmWindowAura::ToAuraWindows(ash::Shell::GetInstance()
- ->mru_window_tracker()
- ->BuildMruWindowList());
+ aura::Window::Windows mru_list = ash::WmWindowAura::ToAuraWindows(
+ ash::WmShell::Get()->mru_window_tracker()->BuildMruWindowList());
if (!mru_list.empty()) {
aura::Window* window = mru_list[0];
ash::wm::WindowState* window_state = ash::wm::GetWindowState(window);
« no previous file with comments | « chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698