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

Unified Diff: chrome/browser/chromeos/login/lock/screen_locker.cc

Issue 2318223003: mash: Migrate wallpaper controllers to ash/common. (Closed)
Patch Set: Fix nit. 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
Index: chrome/browser/chromeos/login/lock/screen_locker.cc
diff --git a/chrome/browser/chromeos/login/lock/screen_locker.cc b/chrome/browser/chromeos/login/lock/screen_locker.cc
index 94f2fba9129df28aa19efebd3844f86d675c6e32..7df31b62eb8d60b9d7af19d07d6e60c7c7caf9bd 100644
--- a/chrome/browser/chromeos/login/lock/screen_locker.cc
+++ b/chrome/browser/chromeos/login/lock/screen_locker.cc
@@ -8,10 +8,11 @@
#include <vector>
#include "ash/common/ash_switches.h"
+#include "ash/common/wallpaper/wallpaper_controller.h"
#include "ash/common/wm/window_state.h"
#include "ash/common/wm/wm_event.h"
+#include "ash/common/wm_shell.h"
#include "ash/shell.h"
-#include "ash/wallpaper/wallpaper_controller.h"
#include "ash/wm/lock_state_controller.h"
#include "ash/wm/window_state_aura.h"
#include "ash/wm/window_util.h"
@@ -492,7 +493,7 @@ ScreenLocker::~ScreenLocker() {
ClearErrors();
VLOG(1) << "Moving wallpaper to unlocked container";
- ash::Shell::GetInstance()->wallpaper_controller()->MoveToUnlockedContainer();
+ ash::WmShell::Get()->wallpaper_controller()->MoveToUnlockedContainer();
screen_locker_ = NULL;
bool state = false;
@@ -523,7 +524,7 @@ void ScreenLocker::ScreenLockReady() {
UMA_HISTOGRAM_TIMES("ScreenLocker.ScreenLockTime", delta);
VLOG(1) << "Moving wallpaper to locked container";
- ash::Shell::GetInstance()->wallpaper_controller()->MoveToLockedContainer();
+ ash::WmShell::Get()->wallpaper_controller()->MoveToLockedContainer();
bool state = true;
VLOG(1) << "Emitting SCREEN_LOCK_STATE_CHANGED with state=" << state;

Powered by Google App Engine
This is Rietveld 408576698