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

Unified Diff: chrome/service/cloud_print/printer_job_handler.cc

Issue 4194001: Implement exponential back-off mechanism and enforce it at the URLRequestHttpJob level. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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: chrome/service/cloud_print/printer_job_handler.cc
===================================================================
--- chrome/service/cloud_print/printer_job_handler.cc (revision 66188)
+++ chrome/service/cloud_print/printer_job_handler.cc (working copy)
@@ -91,7 +91,7 @@
request_->StartGetRequest(
CloudPrintHelpers::GetUrlForPrinterDelete(
cloud_print_server_url_, printer_info_cloud_.printer_id),
- this, auth_token_, kCloudPrintAPIRetryPolicy);
+ this, auth_token_, kCloudPrintAPIMaxRetryCount);
}
if (!task_in_progress_ && printer_update_pending_) {
printer_update_pending_ = false;
@@ -106,7 +106,7 @@
request_->StartGetRequest(
CloudPrintHelpers::GetUrlForJobFetch(
cloud_print_server_url_, printer_info_cloud_.printer_id),
- this, auth_token_, kCloudPrintAPIRetryPolicy);
+ this, auth_token_, kCloudPrintAPIMaxRetryCount);
}
}
}
@@ -206,7 +206,7 @@
request_->StartPostRequest(
CloudPrintHelpers::GetUrlForPrinterUpdate(
cloud_print_server_url_, printer_info_cloud_.printer_id),
- this, auth_token_, kCloudPrintAPIRetryPolicy, mime_type, post_data);
+ this, auth_token_, kCloudPrintAPIMaxRetryCount, mime_type, post_data);
ret = true;
}
return ret;
@@ -347,7 +347,7 @@
request_->StartGetRequest(GURL(print_ticket_url.c_str()),
this,
auth_token_,
- kCloudPrintAPIRetryPolicy);
+ kCloudPrintAPIMaxRetryCount);
}
}
}
@@ -371,7 +371,7 @@
request_->StartGetRequest(GURL(print_data_url_.c_str()),
this,
auth_token_,
- kJobDataRetryPolicy);
+ kJobDataMaxRetryCount);
} else {
// The print ticket was not valid. We are done here.
FailedFetchingJobData();
@@ -519,7 +519,7 @@
status),
this,
auth_token_,
- kCloudPrintAPIRetryPolicy);
+ kCloudPrintAPIMaxRetryCount);
}
}
}

Powered by Google App Engine
This is Rietveld 408576698