| Index: components/user_manager/user_manager_base.cc
|
| diff --git a/components/user_manager/user_manager_base.cc b/components/user_manager/user_manager_base.cc
|
| index 2c7b3ffddaff6b26cf2afabb450f9794db72702e..67e7c806538db9a19d9904ea44bc0674003e9230 100644
|
| --- a/components/user_manager/user_manager_base.cc
|
| +++ b/components/user_manager/user_manager_base.cc
|
| @@ -671,7 +671,8 @@ void UserManagerBase::NotifyLocalStateChanged() {
|
|
|
| bool UserManagerBase::CanUserBeRemoved(const User* user) const {
|
| // Only regular and supervised users are allowed to be manually removed.
|
| - if (!user || !(user->HasGaiaAccount() || user->IsSupervised()))
|
| + if (!user ||
|
| + !(user->HasGaiaAccount() || user->IsSupervised() || user->IsAdUser()))
|
| return false;
|
|
|
| // Sanity check: we must not remove single user unless it's an enterprise
|
| @@ -952,7 +953,8 @@ User* UserManagerBase::RemoveRegularOrSupervisedUserFromList(
|
| user = *it;
|
| it = users_.erase(it);
|
| } else {
|
| - if ((*it)->HasGaiaAccount() || (*it)->IsSupervised()) {
|
| + if ((*it)->HasGaiaAccount() || (*it)->IsSupervised() ||
|
| + (*it)->IsAdUser()) {
|
| const std::string user_email = (*it)->GetAccountId().GetUserEmail();
|
| prefs_users_update->AppendString(user_email);
|
| }
|
|
|