Commit 172f59cd authored by rsorokin's avatar rsorokin Committed by Commit bot

Fixed missing dot in username

BUG=385740

Review URL: https://codereview.chromium.org/540323002

Cr-Commit-Position: refs/heads/master@{#293736}
parent 782fcb77
...@@ -860,18 +860,18 @@ void ExistingUserController::OnAuthSuccess(const UserContext& user_context) { ...@@ -860,18 +860,18 @@ void ExistingUserController::OnAuthSuccess(const UserContext& user_context) {
login_performer_->set_delegate(NULL); login_performer_->set_delegate(NULL);
ignore_result(login_performer_.release()); ignore_result(login_performer_.release());
// Will call OnProfilePrepared() in the end.
LoginUtils::Get()->PrepareProfile(user_context,
has_auth_cookies,
false, // Start session for user.
this);
// Update user's displayed email. // Update user's displayed email.
if (!display_email_.empty()) { if (!display_email_.empty()) {
user_manager::UserManager::Get()->SaveUserDisplayEmail( user_manager::UserManager::Get()->SaveUserDisplayEmail(
user_context.GetUserID(), display_email_); user_context.GetUserID(), display_email_);
display_email_.clear(); display_email_.clear();
} }
// Will call OnProfilePrepared() in the end.
LoginUtils::Get()->PrepareProfile(user_context,
has_auth_cookies,
false, // Start session for user.
this);
} }
void ExistingUserController::OnProfilePrepared(Profile* profile) { void ExistingUserController::OnProfilePrepared(Profile* profile) {
......
...@@ -427,8 +427,10 @@ void UserManagerBase::SaveUserDisplayEmail(const std::string& user_id, ...@@ -427,8 +427,10 @@ void UserManagerBase::SaveUserDisplayEmail(const std::string& user_id,
DCHECK(task_runner_->RunsTasksOnCurrentThread()); DCHECK(task_runner_->RunsTasksOnCurrentThread());
User* user = FindUserAndModify(user_id); User* user = FindUserAndModify(user_id);
if (!user) if (!user) {
LOG(ERROR) << "User not found: " << user_id;
return; // Ignore if there is no such user. return; // Ignore if there is no such user.
}
user->set_display_email(display_email); user->set_display_email(display_email);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment