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

Unified Diff: chrome/tools/service_discovery_sniffer/service_discovery_sniffer.cc

Issue 1534583002: Migrate Local Discovery from net::IPAddressNumber to net::IPAddress. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix builders Created 4 years, 11 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 | « chrome/browser/printing/cloud_print/privet_device_lister_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/tools/service_discovery_sniffer/service_discovery_sniffer.cc
diff --git a/chrome/tools/service_discovery_sniffer/service_discovery_sniffer.cc b/chrome/tools/service_discovery_sniffer/service_discovery_sniffer.cc
index bc161ace23db47c2e3d72b8553ee5967b09ac092..e48edb8bb1bf1a0d3024768d84d2af39a616e54d 100644
--- a/chrome/tools/service_discovery_sniffer/service_discovery_sniffer.cc
+++ b/chrome/tools/service_discovery_sniffer/service_discovery_sniffer.cc
@@ -57,9 +57,8 @@ void ServicePrinter::OnServiceResolved(ServiceResolver::RequestStatus status,
printf("\t\t%s\n", i->c_str());
}
- if (service.ip_address != net::IPAddressNumber()) {
- printf("\tIP Address: %s\n", net::IPAddressToString(
- service.ip_address).c_str());
+ if (service.ip_address.IsValid()) {
+ printf("\tIP Address: %s\n", service.ip_address.ToString().c_str());
}
}
« no previous file with comments | « chrome/browser/printing/cloud_print/privet_device_lister_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698