[remoting host] Add timeout to OAuthTokenGetterImpl
gaia::GaiaOAuthClient doesn't call request_->SetTimeoutDuration() when sending out the request, which might be the cause of b/166817002 -- if CallWithToken never calls the callback, then all pending authenticated requests will be blocked. This CL adds a OneShotTimer to OAuthTokenGetterImpl so that it rejects the callback if it times out. Bug: 1123199 Change-Id: Ic05de360983b2540489edbf33aa0eee2f0c5c87f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2382488 Commit-Queue: Yuwei Huang <yuweih@chromium.org> Reviewed-by:Joe Downing <joedow@chromium.org> Cr-Commit-Position: refs/heads/master@{#803239}
Showing
Please register or sign in to comment