Wait for any token-exchange before using cached OAuth token.

This fixes the logic in OAuthTokenGetterImpl::CallWithToken() for the
case where the stored access-token is valid (not expired) but might
have the wrong scopes because it's not yet exchanged.

Bug: 954427
Change-Id: Ie5c397602b17c73ac4eb160869ed5f8d034d89a3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1583119
Commit-Queue: Joe Downing <joedow@chromium.org>
Reviewed-by: Joe Downing <joedow@chromium.org>
Cr-Commit-Position: refs/heads/master@{#653888}
1 file changed