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

Unified Diff: net/tools/quic/quic_simple_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/quic_server_bin.cc ('k') | net/tools/quic/quic_simple_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_simple_client.cc
diff --git a/net/tools/quic/quic_simple_client.cc b/net/tools/quic/quic_simple_client.cc
index 4c2b221660584287aceb62efe9790bdff4096e11..b1dcf192190f366b9b4ae19aa2e063bc3aefebcb 100644
--- a/net/tools/quic/quic_simple_client.cc
+++ b/net/tools/quic/quic_simple_client.cc
@@ -107,11 +107,9 @@ bool QuicSimpleClient::CreateUDPSocket() {
if (bind_to_address_.size() != 0) {
client_address_ = IPEndPoint(bind_to_address_, local_port_);
} else if (address_family == 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("::"));
- client_address_ = IPEndPoint(any6, local_port_);
+ client_address_ = IPEndPoint(IPAddress::IPv6AllZeros(), local_port_);
}
int rc = socket->Connect(server_address_);
« no previous file with comments | « net/tools/quic/quic_server_bin.cc ('k') | net/tools/quic/quic_simple_server_bin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698