Skip to content

Commit

Permalink
Prevent accidental addition of public sessions to regular user list
Browse files Browse the repository at this point in the history
When ephemeral users are enabled, Chrome removes existing regular users
on start. This accidentally causes public session users to be copied to
the regular user list. The CL fixes that.

BUG=178100
TEST=Manual


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@184848 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
bartfab@chromium.org committed Feb 27, 2013
1 parent d6e0e0f commit bd1714d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion chrome/browser/chromeos/login/user_manager_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -895,7 +895,8 @@ void UserManagerImpl::RetrieveTrustedDevicePolicies() {
it = users_.erase(it);
changed = true;
} else {
prefs_users_update->Append(new base::StringValue(user_email));
if ((*it)->GetType() != User::USER_TYPE_PUBLIC_ACCOUNT)
prefs_users_update->Append(new base::StringValue(user_email));
++it;
}
}
Expand Down

0 comments on commit bd1714d

Please sign in to comment.