| Index: chrome/service/cloud_print/cloud_print_url_fetcher.cc
|
| diff --git a/chrome/service/cloud_print/cloud_print_url_fetcher.cc b/chrome/service/cloud_print/cloud_print_url_fetcher.cc
|
| index 731acd35dff1ab79f38751e8ae3b8b193e25cfd7..13af5f7df19e0abd333df64c8f33216e2dc2efe5 100644
|
| --- a/chrome/service/cloud_print/cloud_print_url_fetcher.cc
|
| +++ b/chrome/service/cloud_print/cloud_print_url_fetcher.cc
|
| @@ -102,12 +102,11 @@ void CloudPrintURLFetcher::OnURLFetchComplete(
|
| }
|
| // Retry the request if needed.
|
| if (action == RETRY_REQUEST) {
|
| - // If the response code is greater than or equal to 500, then the back-off
|
| - // period has been increased at the network level; otherwise, explicitly
|
| - // call ReceivedContentWasMalformed() to count the current request as a
|
| - // failure and increase the back-off period.
|
| - if (response_code < 500)
|
| - request_->ReceivedContentWasMalformed();
|
| + // Explicitly call ReceivedContentWasMalformed() to ensure the current
|
| + // request gets counted as a failure for calculation of the back-off
|
| + // period. If it was already a failure by status code, this call will
|
| + // be ignored.
|
| + request_->ReceivedContentWasMalformed();
|
|
|
| ++num_retries_;
|
| if ((-1 != source->max_retries()) &&
|
|
|