| Index: chrome/browser/chromeos/login/base_login_display_host.cc
|
| diff --git a/chrome/browser/chromeos/login/base_login_display_host.cc b/chrome/browser/chromeos/login/base_login_display_host.cc
|
| index 780a6ac909e2359b3656ad759a4a0682649d1c51..70edf0db6f580fd11d1fc4a3ff47b0e9cd4b6265 100644
|
| --- a/chrome/browser/chromeos/login/base_login_display_host.cc
|
| +++ b/chrome/browser/chromeos/login/base_login_display_host.cc
|
| @@ -37,6 +37,7 @@
|
| #include "chrome/browser/chromeos/system/timezone_settings.h"
|
| #include "chrome/browser/managed_mode/managed_mode.h"
|
| #include "chrome/browser/policy/browser_policy_connector.h"
|
| +#include "chrome/browser/profiles/profile_destroyer.h"
|
| #include "chrome/common/chrome_notification_types.h"
|
| #include "chrome/common/chrome_switches.h"
|
| #include "chrome/common/pref_names.h"
|
| @@ -167,12 +168,12 @@ void BaseLoginDisplayHost::BeforeSessionStart() {
|
|
|
| void BaseLoginDisplayHost::OnSessionStart() {
|
| DVLOG(1) << "Session starting";
|
| - if (chromeos::UserManager::Get()->IsCurrentUserNew()) {
|
| - ash::Shell::GetInstance()->
|
| - desktop_background_controller()->MoveDesktopToUnlockedContainer();
|
| - }
|
| + ash::Shell::GetInstance()->
|
| + desktop_background_controller()->MoveDesktopToUnlockedContainer();
|
| if (wizard_controller_.get())
|
| wizard_controller_->OnSessionStart();
|
| + ProfileDestroyer::DestroyProfileWhenAppropriate(
|
| + ProfileManager::GetSigninProfile());
|
| // Display host is deleted once animation is completed
|
| // since sign in screen widget has to stay alive.
|
| StartAnimation();
|
|
|