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

Unified Diff: net/tools/quic/quic_client.cc

Issue 1809863002: Update some callers to use more direct ways of constructing IPAddress from well known literals. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rch feedbak Created 4 years, 9 months 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
« no previous file with comments | « net/tools/quic/end_to_end_test.cc ('k') | net/tools/quic/quic_server_bin.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/quic_client.cc
diff --git a/net/tools/quic/quic_client.cc b/net/tools/quic/quic_client.cc
index 04b7d2f50352c0a17c11b1a595892954cbf5162f..8f9da4fe3aa30ec4f1f4bdc584b579b5a58762a4 100644
--- a/net/tools/quic/quic_client.cc
+++ b/net/tools/quic/quic_client.cc
@@ -149,10 +149,9 @@ bool QuicClient::CreateUDPSocketAndBind() {
if (bind_to_address_.size() != 0) {
client_address = IPEndPoint(bind_to_address_, local_port_);
} else if (server_address_.GetSockAddrFamily() == AF_INET) {
- client_address = IPEndPoint(IPAddress(0, 0, 0, 0), local_port_);
+ client_address = IPEndPoint(IPAddress::IPv4AllZeros(), local_port_);
} else {
- IPAddress any6;
- CHECK(any6.AssignFromIPLiteral("::"));
+ IPAddress any6 = IPAddress::IPv6AllZeros();
client_address = IPEndPoint(any6, local_port_);
}
« no previous file with comments | « net/tools/quic/end_to_end_test.cc ('k') | net/tools/quic/quic_server_bin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698