| 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 e8291a6f04c2c6f257649d4068cac95bc7aad18e..8978a8124383010d94a6d8aa2fdde3bca1d911c1 100644
|
| --- a/chrome/browser/chromeos/login/user_manager_impl.cc
|
| +++ b/chrome/browser/chromeos/login/user_manager_impl.cc
|
| @@ -545,6 +545,13 @@ const User* UserManagerImpl::FindUser(const std::string& user_id) const {
|
| return FindUserInList(user_id);
|
| }
|
|
|
| +User* UserManagerImpl::FindUserAndModify(const std::string& user_id) {
|
| + DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
|
| + if (active_user_ && active_user_->email() == user_id)
|
| + return active_user_;
|
| + return FindUserInListAndModify(user_id);
|
| +}
|
| +
|
| const User* UserManagerImpl::GetLoggedInUser() const {
|
| DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
|
| return active_user_;
|
| @@ -1168,13 +1175,6 @@ UserList& UserManagerImpl::GetUsersAndModify() {
|
| return users_;
|
| }
|
|
|
| -User* UserManagerImpl::FindUserAndModify(const std::string& user_id) {
|
| - DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
|
| - if (active_user_ && active_user_->email() == user_id)
|
| - return active_user_;
|
| - return FindUserInListAndModify(user_id);
|
| -}
|
| -
|
| const User* UserManagerImpl::FindUserInList(const std::string& user_id) const {
|
| const UserList& users = GetUsers();
|
| for (UserList::const_iterator it = users.begin(); it != users.end(); ++it) {
|
|
|