| Index: chrome/browser/chromeos/login/users/user_manager_impl.cc
|
| diff --git a/chrome/browser/chromeos/login/users/user_manager_impl.cc b/chrome/browser/chromeos/login/users/user_manager_impl.cc
|
| index 0058b66fd040585b43bcfc92f7f60d36c06401b8..088f6d5fa15522e087e68b1f08447cfbe9d40092 100644
|
| --- a/chrome/browser/chromeos/login/users/user_manager_impl.cc
|
| +++ b/chrome/browser/chromeos/login/users/user_manager_impl.cc
|
| @@ -324,7 +324,6 @@ UserList UserManagerImpl::GetUsersAdmittedForMultiProfile() const {
|
| }
|
|
|
| UserList result;
|
| - int num_users_allowed = 0;
|
| const UserList& users = GetUsers();
|
| for (UserList::const_iterator it = users.begin(); it != users.end(); ++it) {
|
| if ((*it)->GetType() == User::USER_TYPE_REGULAR && !(*it)->is_logged_in()) {
|
| @@ -343,17 +342,10 @@ UserList UserManagerImpl::GetUsersAdmittedForMultiProfile() const {
|
| check == MultiProfileUserController::NOT_ALLOWED_POLICY_FORBIDS ||
|
| check == MultiProfileUserController::NOT_ALLOWED_OWNER_AS_SECONDARY) {
|
| result.push_back(*it);
|
| - if (check == MultiProfileUserController::ALLOWED)
|
| - num_users_allowed++;
|
| }
|
| }
|
| }
|
|
|
| - // We only show multi-profiles sign in UI if there's at least one user that
|
| - // is allowed to be added to the session.
|
| - if (!num_users_allowed)
|
| - result.clear();
|
| -
|
| return result;
|
| }
|
|
|
|
|