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

Unified Diff: chrome/browser/net/dns_probe_service.cc

Issue 716223002: Use uint16 for port numbers, chrome/ edition (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Self-review 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: chrome/browser/net/dns_probe_service.cc
diff --git a/chrome/browser/net/dns_probe_service.cc b/chrome/browser/net/dns_probe_service.cc
index 46b23afb4ca7a366c47c059404141d85b5daaba1..38b79041382109fdcae18b684a76bc58f2fca825 100644
--- a/chrome/browser/net/dns_probe_service.cc
+++ b/chrome/browser/net/dns_probe_service.cc
@@ -19,7 +19,6 @@ using chrome_common_net::DnsProbeStatus;
using net::DnsClient;
using net::DnsConfig;
using net::IPAddressNumber;
-using net::IPEndPoint;
using net::ParseIPLiteralToNumber;
using net::NetworkChangeNotifier;
@@ -37,11 +36,11 @@ const int kMaxResultAgeMs = 5000;
const char kGooglePublicDns1[] = "8.8.8.8";
const char kGooglePublicDns2[] = "8.8.4.4";
-IPEndPoint MakeDnsEndPoint(const std::string& dns_ip_literal) {
+net::IPEndPoint MakeDnsEndPoint(const std::string& dns_ip_literal) {
IPAddressNumber dns_ip_number;
bool rv = ParseIPLiteralToNumber(dns_ip_literal, &dns_ip_number);
DCHECK(rv);
- return IPEndPoint(dns_ip_number, net::dns_protocol::kDefaultPort);
+ return net::IPEndPoint(dns_ip_number, net::dns_protocol::kDefaultPort);
}
DnsProbeStatus EvaluateResults(DnsProbeRunner::Result system_result,

Powered by Google App Engine
This is Rietveld 408576698