Commit f1f953d6 authored by rogerta's avatar rogerta Committed by Commit bot

Don't attempt to revoke old refresh token on reauth.

Since refresh tokens are now tagged with device id, this will invalidate the
new refresh token as well.

BUG=398971

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

Cr-Commit-Position: refs/heads/master@{#330096}
parent ec40eb01
......@@ -373,9 +373,6 @@ void MutableProfileOAuth2TokenService::UpdateCredentials(
<< "account_id=" << account_id;
std::string revoke_reason = refresh_token_present ? "token differs" :
"token is missing";
LOG(WARNING) << "Revoking refresh token on server. "
<< "Reason: token update, " << revoke_reason;
RevokeCredentialsOnServer(refresh_tokens_[account_id]->refresh_token());
CancelRequestsForAccount(account_id);
ClearCacheForAccount(account_id);
refresh_tokens_[account_id]->set_refresh_token(refresh_token);
......
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