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 b7c06122df2703851936416ccf0408b1107e4338..5d0c43adb13a5240a24e8c02c40036995dcd986d 100644 |
--- a/net/url_request/url_request_throttler_entry.cc |
+++ b/net/url_request/url_request_throttler_entry.cc |
@@ -150,11 +150,11 @@ void URLRequestThrottlerEntry::DetachManager() { |
} |
bool URLRequestThrottlerEntry::ShouldRejectRequest( |
- const URLRequest& request) const { |
+ const URLRequest& request, |
+ NetworkDelegate* network_delegate) const { |
bool reject_request = false; |
if (!is_backoff_disabled_ && !ExplicitUserRequest(request.load_flags()) && |
- (!request.context()->network_delegate() || |
- request.context()->network_delegate()->CanThrottleRequest(request)) && |
+ (!network_delegate || network_delegate->CanThrottleRequest(request)) && |
GetBackoffEntry()->ShouldRejectRequest()) { |
int num_failures = GetBackoffEntry()->failure_count(); |
int release_after_ms = |