Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1142)

Unified Diff: google_apis/gaia/gaia_oauth_client.cc

Issue 15977002: Add ManagedUserTokenFetcher to fetch scoped-down tokens. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: google_apis/gaia/gaia_oauth_client.cc
diff --git a/google_apis/gaia/gaia_oauth_client.cc b/google_apis/gaia/gaia_oauth_client.cc
index a9bae4f36bfe807186d6a912ab1be7ecf2d61de5..7e15c9df6bc0c78781ecaba9de02e9cfecdf8127 100644
--- a/google_apis/gaia/gaia_oauth_client.cc
+++ b/google_apis/gaia/gaia_oauth_client.cc
@@ -203,7 +203,7 @@ void GaiaOAuthClient::Core::HandleResponse(
// If we don't have an access token yet and the the error was not
// RC_BAD_REQUEST, we may need to retry.
if ((source->GetMaxRetriesOn5xx() != -1) &&
- (num_retries_ > source->GetMaxRetriesOn5xx())) {
+ (num_retries_ >= source->GetMaxRetriesOn5xx())) {
Andrew T Wilson (Slow) 2013/05/27 13:52:15 Do we have a test that exercises this change?
Bernhard Bauer 2013/05/27 14:42:13 device_cloud_policy_manager_chromeos_unittest.cc (
// Retry limit reached. Give up.
delegate_->OnNetworkError(source->GetResponseCode());
} else {
« chrome/browser/signin/oauth2_token_service.h ('K') | « chrome/chrome_tests_unit.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698