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

Unified Diff: net/url_request/url_request_http_job.cc

Issue 6369007: Disable enforced throttling for URL requests.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 11 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_http_job.cc
===================================================================
--- net/url_request/url_request_http_job.cc (revision 72103)
+++ net/url_request/url_request_http_job.cc (working copy)
@@ -219,15 +219,8 @@
rv = request_->context()->http_transaction_factory()->CreateTransaction(
&transaction_);
if (rv == OK) {
- if (!throttling_entry_->IsDuringExponentialBackoff() ||
- !net::URLRequestThrottlerManager::GetInstance()->
- enforce_throttling()) {
- rv = transaction_->Start(
- &request_info_, &start_callback_, request_->net_log());
- } else {
- // Special error code for the exponential back-off module.
- rv = ERR_TEMPORARILY_THROTTLED;
- }
+ rv = transaction_->Start(
+ &request_info_, &start_callback_, request_->net_log());
// Make sure the context is alive for the duration of the
// transaction.
context_ = request_->context();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698