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

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
« no previous file with comments | « chrome/service/cloud_print/job_status_updater.cc ('k') | chrome_frame/metrics_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/service/cloud_print/printer_job_handler.cc
===================================================================
--- chrome/service/cloud_print/printer_job_handler.cc (revision 67336)
+++ 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;
@@ -107,7 +107,7 @@
CloudPrintHelpers::GetUrlForJobFetch(
cloud_print_server_url_, printer_info_cloud_.printer_id,
job_fetch_reason_),
- this, auth_token_, kCloudPrintAPIRetryPolicy);
+ this, auth_token_, kCloudPrintAPIMaxRetryCount);
last_job_fetch_time_ = base::TimeTicks::Now();
VLOG(1) << "Last job fetch time for printer "
<< printer_info_.printer_name.c_str() << " is "
@@ -214,7 +214,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;
@@ -355,7 +355,7 @@
request_->StartGetRequest(GURL(print_ticket_url.c_str()),
this,
auth_token_,
- kCloudPrintAPIRetryPolicy);
+ kCloudPrintAPIMaxRetryCount);
}
}
}
@@ -379,7 +379,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();
@@ -527,7 +527,7 @@
status),
this,
auth_token_,
- kCloudPrintAPIRetryPolicy);
+ kCloudPrintAPIMaxRetryCount);
}
}
}
« no previous file with comments | « chrome/service/cloud_print/job_status_updater.cc ('k') | chrome_frame/metrics_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698