Index: net/url_request/url_request_http_job.cc |
diff --git a/net/url_request/url_request_http_job.cc b/net/url_request/url_request_http_job.cc |
index a25afcb2baa5651dd0b3fae40186fcce4f0d5a9c..28acec2152fc37972c0e58f9424328ccb51df6d1 100644 |
--- a/net/url_request/url_request_http_job.cc |
+++ b/net/url_request/url_request_http_job.cc |
@@ -45,7 +45,6 @@ |
#include "net/url_request/url_request_error_job.h" |
#include "net/url_request/url_request_job_factory.h" |
#include "net/url_request/url_request_redirect_job.h" |
-#include "net/url_request/url_request_throttler_header_adapter.h" |
#include "net/url_request/url_request_throttler_manager.h" |
#include "net/websockets/websocket_handshake_stream_base.h" |
@@ -308,11 +307,8 @@ void URLRequestHttpJob::NotifyHeadersComplete() { |
// also need this info. |
is_cached_content_ = response_info_->was_cached; |
- if (!is_cached_content_ && throttling_entry_.get()) { |
- URLRequestThrottlerHeaderAdapter response_adapter(GetResponseHeaders()); |
- throttling_entry_->UpdateWithResponse(request_info_.url.host(), |
- &response_adapter); |
- } |
+ if (!is_cached_content_ && throttling_entry_.get()) |
+ throttling_entry_->UpdateWithResponse(GetResponseCode()); |
// The ordering of these calls is not important. |
ProcessStrictTransportSecurityHeader(); |