Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(597)

Unified Diff: net/url_request/url_request_http_job.cc

Issue 8898008: No longer preconnect to unsafe ports. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Add missing file Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/url_request/url_request_http_job.cc
===================================================================
--- net/url_request/url_request_http_job.cc (revision 113620)
+++ net/url_request/url_request_http_job.cc (working copy)
@@ -167,10 +167,6 @@
const std::string& scheme) {
DCHECK(scheme == "http" || scheme == "https");
- int port = request->url().IntPort();
- if (!IsPortAllowedByDefault(port) && !IsPortAllowedByOverride(port))
- return new URLRequestErrorJob(request, ERR_UNSAFE_PORT);
-
if (!request->context() ||
!request->context()->http_transaction_factory()) {
NOTREACHED() << "requires a valid context";
« net/http/http_stream_factory_impl_job.cc ('K') | « net/http/http_stream_factory_impl_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698