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 ed30738e6483e8aae43cf209fadfab3ee4c77c31..8ba625a16f8ea0b478c236b335e8911dc3e87e33 100644 |
--- a/net/url_request/url_request_http_job.cc |
+++ b/net/url_request/url_request_http_job.cc |
@@ -263,30 +263,6 @@ const NetLogWithSource& URLRequestHttpJob::HttpFilterContext::GetNetLog() |
return job_->request() ? job_->request()->net_log() : dummy_log_; |
} |
-// TODO(darin): make sure the port blocking code is not lost |
-// static |
-URLRequestJob* URLRequestHttpJob::Factory(URLRequest* request, |
- NetworkDelegate* network_delegate, |
- const std::string& scheme) { |
- DCHECK(scheme == "http" || scheme == "https" || scheme == "ws" || |
- scheme == "wss"); |
- |
- if (!request->context()->http_transaction_factory()) { |
- NOTREACHED() << "requires a valid context"; |
- return new URLRequestErrorJob( |
- request, network_delegate, ERR_INVALID_ARGUMENT); |
- } |
- |
- URLRequestRedirectJob* redirect = |
- MaybeInternallyRedirect(request, network_delegate); |
- if (redirect) |
- return redirect; |
- |
- return new URLRequestHttpJob(request, |
- network_delegate, |
- request->context()->http_user_agent_settings()); |
-} |
- |
URLRequestHttpJob::URLRequestHttpJob( |
URLRequest* request, |
NetworkDelegate* network_delegate, |