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

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

Issue 2832053003: cros: WallpaperController reparent based on session state (Closed)
Patch Set: rebase Created 3 years, 8 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/chromeos/login/supervised/supervised_user_creation_screen.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 c4fa3aa77785760a9ab823f7bd1c9a1a6f843bdb..6db2b1af8b0e70bb4d47adbe482ba8dd6dcb53d3 100644
--- a/chrome/browser/chromeos/login/ui/login_display_host_impl.cc
+++ b/chrome/browser/chromeos/login/ui/login_display_host_impl.cc
@@ -11,7 +11,6 @@
#include "ash/shell.h"
#include "ash/shell_port.h"
#include "ash/system/tray/system_tray.h"
-#include "ash/wallpaper/wallpaper_controller.h"
#include "ash/wallpaper/wallpaper_delegate.h"
#include "base/bind.h"
#include "base/command_line.h"
@@ -537,14 +536,7 @@ void LoginDisplayHostImpl::BeforeSessionStart() {
}
void LoginDisplayHostImpl::Finalize() {
- DVLOG(1) << "Session starting";
- // When adding another user into the session, we defer the wallpaper's
- // animation in order to prevent the flashing of the previous user's windows.
- // See crbug.com/541864.
- if (ash::ShellPort::HasInstance() &&
- finalize_animation_type_ != ANIMATION_ADD_USER) {
- ash::Shell::Get()->wallpaper_controller()->MoveToUnlockedContainer();
- }
+ DVLOG(1) << "Finalizing LoginDisplayHost. User session starting";
switch (finalize_animation_type_) {
case ANIMATION_NONE:
@@ -566,6 +558,7 @@ void LoginDisplayHostImpl::Finalize() {
// animation (which is done by UserSwitchAnimatorChromeOS) is finished.
// This is to guarantee OnUserSwitchAnimationFinished() is called before
// LoginDisplayHost deletes itself.
+ // See crbug.com/541864.
break;
default:
break;
@@ -655,8 +648,6 @@ void LoginDisplayHostImpl::StartUserAdding(
ash::Shell::GetPrimaryRootWindow(),
ash::kShellWindowId_LockScreenContainersContainer);
lock_container->layer()->SetOpacity(1.0);
-
- ash::Shell::Get()->wallpaper_controller()->MoveToLockedContainer();
} else {
NOTIMPLEMENTED();
}
@@ -911,13 +902,6 @@ void LoginDisplayHostImpl::Observe(
content::NotificationService::AllSources());
} else if (type == chrome::NOTIFICATION_LOGIN_USER_CHANGED &&
user_manager::UserManager::Get()->IsCurrentUserNew()) {
- 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::Shell::Get()->wallpaper_controller()->MoveToLockedContainer();
- } else {
- NOTIMPLEMENTED();
- }
registrar_.Remove(this,
chrome::NOTIFICATION_LOGIN_USER_CHANGED,
content::NotificationService::AllSources());
@@ -1042,17 +1026,9 @@ void LoginDisplayHostImpl::ShutdownDisplayHost(bool post_quit_task) {
if (post_quit_task)
base::MessageLoop::current()->QuitWhenIdle();
- if (!completion_callback_.is_null())
+ if (!completion_callback_.is_null()) {
base::ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE,
completion_callback_);
-
- if (ash::Shell::HasInstance() &&
- finalize_animation_type_ == ANIMATION_ADD_USER) {
- if (!ash_util::IsRunningInMash()) {
- ash::Shell::Get()->wallpaper_controller()->MoveToUnlockedContainer();
- } else {
- NOTIMPLEMENTED();
- }
}
}
« no previous file with comments | « chrome/browser/chromeos/login/supervised/supervised_user_creation_screen.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698