| Index: chrome/browser/chromeos/login/user_manager_impl.cc
|
| diff --git a/chrome/browser/chromeos/login/user_manager_impl.cc b/chrome/browser/chromeos/login/user_manager_impl.cc
|
| index 1e0c61a99c7b6f86d073c225b2b659bec3a8ab06..53d12befea07b6b245aefd6587a4892c59110e16 100644
|
| --- a/chrome/browser/chromeos/login/user_manager_impl.cc
|
| +++ b/chrome/browser/chromeos/login/user_manager_impl.cc
|
| @@ -1504,12 +1504,19 @@ void UserManagerImpl::RetailModeUserLoggedIn() {
|
| }
|
|
|
| void UserManagerImpl::NotifyOnLogin() {
|
| - UpdateNumberOfUsers();
|
| CHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
|
| +
|
| + // Notify that use of base::GetHomeDir() is now allowed and initialize
|
| + // it to primary user home dir.
|
| + base::SetUserLoggedIn(true);
|
| + if (GetLoggedInUsers().size() == 1)
|
| + base::SetPrimaryUserIdHash(active_user_->username_hash());
|
| +
|
| + UpdateNumberOfUsers();
|
| NotifyActiveUserHashChanged(active_user_->username_hash());
|
| NotifyActiveUserChanged(active_user_);
|
| -
|
| UpdateLoginState();
|
| +
|
| // TODO(nkostylev): Deprecate this notification in favor of
|
| // ActiveUserChanged() observer call.
|
| content::NotificationService::current()->Notify(
|
|
|