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 7041b8d974d569c648734f9d2f5d5b331f890a38..4f44f2e35fac035970026996cb2fe90409e3f2cd 100644 |
--- a/net/url_request/url_request_http_job.cc |
+++ b/net/url_request/url_request_http_job.cc |
@@ -448,8 +448,7 @@ void URLRequestHttpJob::OnCanGetCookiesCompleted(int policy) { |
std::string cookies = |
request_->context()->cookie_store()->GetCookiesWithOptions( |
request_->url(), options); |
- if (request_->context()->InterceptRequestCookies(request_, cookies) && |
- !cookies.empty()) { |
+ if (!cookies.empty()) { |
request_info_.extra_headers.SetHeader( |
net::HttpRequestHeaders::kCookie, cookies); |
} |
@@ -785,10 +784,8 @@ void URLRequestHttpJob::FetchResponseCookies( |
std::string value; |
void* iter = NULL; |
- while (response_info->headers->EnumerateHeader(&iter, name, &value)) { |
- if (request_->context()->InterceptResponseCookie(request_, value)) |
- cookies->push_back(value); |
- } |
+ while (response_info->headers->EnumerateHeader(&iter, name, &value)) |
+ cookies->push_back(value); |
} |
class HTTPSProberDelegate : public net::HTTPSProberDelegate { |