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

Unified Diff: chrome/browser/chromeos/login/ui/login_display_host_impl.cc

Issue 2738133003: Promotes a handful of members from WmShell to Shell (Closed)
Patch Set: merge 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
Index: chrome/browser/chromeos/login/ui/login_display_host_impl.cc
diff --git a/chrome/browser/chromeos/login/ui/login_display_host_impl.cc b/chrome/browser/chromeos/login/ui/login_display_host_impl.cc
index 7661afca0271e994fe3c48173f0df52fb75bd8ab..cfa9e34d1c171616c9330a9b634ad4cf0a84a0a3 100644
--- a/chrome/browser/chromeos/login/ui/login_display_host_impl.cc
+++ b/chrome/browser/chromeos/login/ui/login_display_host_impl.cc
@@ -561,7 +561,9 @@ void LoginDisplayHostImpl::Finalize() {
// See crbug.com/541864.
if (ash::WmShell::HasInstance() &&
finalize_animation_type_ != ANIMATION_ADD_USER) {
- ash::WmShell::Get()->wallpaper_controller()->MoveToUnlockedContainer();
+ ash::Shell::GetInstance()
+ ->wallpaper_controller()
+ ->MoveToUnlockedContainer();
}
switch (finalize_animation_type_) {
@@ -685,7 +687,7 @@ void LoginDisplayHostImpl::StartUserAdding(
ash::kShellWindowId_LockScreenContainersContainer);
lock_container->layer()->SetOpacity(1.0);
- ash::WmShell::Get()->wallpaper_controller()->MoveToLockedContainer();
+ ash::Shell::GetInstance()->wallpaper_controller()->MoveToLockedContainer();
} else {
NOTIMPLEMENTED();
}
@@ -948,7 +950,9 @@ void LoginDisplayHostImpl::Observe(
if (!ash_util::IsRunningInMash()) {
// For new user, move wallpaper to lock container so that windows created
// during the user image picker step are below it.
- ash::WmShell::Get()->wallpaper_controller()->MoveToLockedContainer();
+ ash::Shell::GetInstance()
+ ->wallpaper_controller()
+ ->MoveToLockedContainer();
} else {
NOTIMPLEMENTED();
}
@@ -1118,7 +1122,9 @@ void LoginDisplayHostImpl::ShutdownDisplayHost(bool post_quit_task) {
if (ash::Shell::HasInstance() &&
finalize_animation_type_ == ANIMATION_ADD_USER) {
if (!ash_util::IsRunningInMash()) {
- ash::WmShell::Get()->wallpaper_controller()->MoveToUnlockedContainer();
+ ash::Shell::GetInstance()
+ ->wallpaper_controller()
+ ->MoveToUnlockedContainer();
} else {
NOTIMPLEMENTED();
}

Powered by Google App Engine
This is Rietveld 408576698