Index: net/url_request/url_request_throttler_entry.cc |
diff --git a/net/url_request/url_request_throttler_entry.cc b/net/url_request/url_request_throttler_entry.cc |
index 0899ed41ea5c629ecba95d44a0dffad6dfcc66bc..fc82ff1b71cd94f344b4e94a9eb8c2ec1e5da469 100644 |
--- a/net/url_request/url_request_throttler_entry.cc |
+++ b/net/url_request/url_request_throttler_entry.cc |
@@ -153,9 +153,7 @@ bool URLRequestThrottlerEntry::ShouldRejectRequest( |
const URLRequest& request) const { |
bool reject_request = false; |
if (!is_backoff_disabled_ && !ExplicitUserRequest(request.load_flags()) && |
- (!request.context()->network_delegate() || |
- request.context()->network_delegate()->CanThrottleRequest(request)) && |
- GetBackoffEntry()->ShouldRejectRequest()) { |
+ request.CanThrottle() && GetBackoffEntry()->ShouldRejectRequest()) { |
erikwright (departed)
2013/02/25 15:07:23
I don't think this is right. Either we can just no
|
int num_failures = GetBackoffEntry()->failure_count(); |
int release_after_ms = |
GetBackoffEntry()->GetTimeUntilRelease().InMilliseconds(); |