Skip to content

Commit

Permalink
[cros] Move OOBE background to lock screen background at new user login.
Browse files Browse the repository at this point in the history
Now for realz. Fixes regression after https://chromiumcodereview.appspot.com/11170004


BUG=145533

Review URL: https://chromiumcodereview.appspot.com/11348004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@164691 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
ivankr@chromium.org committed Oct 29, 2012
1 parent 542b92f commit f6d1af8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions chrome/browser/chromeos/login/base_login_display_host.cc
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,12 @@ BaseLoginDisplayHost::BaseLoginDisplayHost(const gfx::Rect& background_bounds)
registrar_.Add(this,
chrome::NOTIFICATION_BROWSER_OPENED,
content::NotificationService::AllSources());

// Login screen is moved to lock screen container when user logs in.
registrar_.Add(this,
chrome::NOTIFICATION_LOGIN_USER_CHANGED,
content::NotificationService::AllSources());

DCHECK(default_host_ == NULL);
default_host_ = this;

Expand Down Expand Up @@ -284,6 +290,9 @@ void BaseLoginDisplayHost::Observe(
// during the user image picker step are below it.
ash::Shell::GetInstance()->
desktop_background_controller()->MoveDesktopToLockedContainer();
registrar_.Remove(this,
chrome::NOTIFICATION_LOGIN_USER_CHANGED,
content::NotificationService::AllSources());
}
}

Expand Down

0 comments on commit f6d1af8

Please sign in to comment.