Commit 75de4cfc authored by flackr@chromium.org's avatar flackr@chromium.org

Send login notification after initializing default user avatar.

BUG=122532
TEST=Log in with file /root/.forget_usernames, avatar is correctly set and does not change when locking.


Review URL: http://codereview.chromium.org/9972004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132414 0039d316-1c4b-4281-b951-d872f2087c98
parent 68eae855
...@@ -380,8 +380,6 @@ void UserManagerImpl::UserLoggedIn(const std::string& email) { ...@@ -380,8 +380,6 @@ void UserManagerImpl::UserLoggedIn(const std::string& email) {
// This user must be in the front of the user list. // This user must be in the front of the user list.
users_.insert(users_.begin(), logged_in_user_); users_.insert(users_.begin(), logged_in_user_);
NotifyOnLogin();
if (is_current_user_new_) { if (is_current_user_new_) {
SetInitialUserImage(email); SetInitialUserImage(email);
} else { } else {
...@@ -413,6 +411,8 @@ void UserManagerImpl::UserLoggedIn(const std::string& email) { ...@@ -413,6 +411,8 @@ void UserManagerImpl::UserLoggedIn(const std::string& email) {
histogram_index, histogram_index,
kHistogramImagesCount); kHistogramImagesCount);
} }
NotifyOnLogin();
} }
void UserManagerImpl::DemoUserLoggedIn() { void UserManagerImpl::DemoUserLoggedIn() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment