[identity] Correctly handle expired tokens in IdentityTokenCache
This CL fixes a bug in IdentityTokenCache::GetToken function that incorrectly handles expired tokens. The code contained a DCHECK that is triggered all the time when the access token cache returns an expired token. This CL modifies IdentityTokenCache::GetToken to iterate over several possible match candidates discarding all expired tokens. Bug: 1127187, 1100535 Change-Id: I30390b76debb740a5bf43df89383d35695dcc6c0 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2404851 Commit-Queue: Alex Ilin <alexilin@chromium.org> Reviewed-by:David Roger <droger@chromium.org> Cr-Commit-Position: refs/heads/master@{#806214}
Showing
Please register or sign in to comment