Chromium Code Reviews| 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 3992ff408cf346258962adcb060c9d35ba24f872..6913e1b9a77456044cf01048f3a83267eced7105 100644 |
| --- a/components/user_manager/user_manager_base.cc |
| +++ b/components/user_manager/user_manager_base.cc |
| @@ -427,8 +427,10 @@ void UserManagerBase::SaveUserDisplayEmail(const std::string& user_id, |
| DCHECK(task_runner_->RunsTasksOnCurrentThread()); |
| User* user = FindUserAndModify(user_id); |
| - if (!user) |
| + if (!user) { |
| + LOG(ERROR) << "User not found"; |
|
Nikita (slow)
2014/09/08 11:57:05
nit: makes sense to log user_id as well
|
| return; // Ignore if there is no such user. |
| + } |
| user->set_display_email(display_email); |