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

Unified Diff: net/http/http_network_transaction.cc

Issue 718273002: Use uint16 for port numbers, net/ edition (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comment Created 6 years, 1 month 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/http/http_network_transaction.cc
diff --git a/net/http/http_network_transaction.cc b/net/http/http_network_transaction.cc
index 20ffdd14f1755a2511bc3340acf060728bb66e7f..348e4fef0df13ad6b41eefba4d0495b69cefd29c 100644
--- a/net/http/http_network_transaction.cc
+++ b/net/http/http_network_transaction.cc
@@ -1027,8 +1027,9 @@ int HttpNetworkTransaction::DoReadHeadersComplete(int result) {
return OK;
}
- HostPortPair endpoint = HostPortPair(request_->url.HostNoBrackets(),
- request_->url.EffectiveIntPort());
+ HostPortPair endpoint = HostPortPair(
+ request_->url.HostNoBrackets(),
+ static_cast<uint16>(request_->url.EffectiveIntPort()));
mmenke 2014/11/18 21:06:39 HostPortPair::FromURL(request.url)
Peter Kasting 2014/11/18 23:38:42 Done.
ProcessAlternateProtocol(session_,
*response_.headers.get(),
endpoint);

Powered by Google App Engine
This is Rietveld 408576698