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

Issue 1534583002: Migrate Local Discovery from net::IPAddressNumber to net::IPAddress. (Closed)

Created:
5 years ago by martijnc
Modified:
4 years, 10 months ago
CC:
cbentzel+watch_chromium.org, chromium-apps-reviews_chromium.org, chromium-reviews, darin-cc_chromium.org, devtools-reviews_chromium.org, extensions-reviews_chromium.org, jam, pfeldman, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

This CL migrates Local Discovery from net::IPAddressNumber to net::IPAddress. This CL is part of the net::IPAddressNumber migration[1]. BUG=496258 [1] https://code.google.com/p/chromium/issues/detail?id=496258#c10 Committed: https://crrev.com/aed54d71aad92c60a684f21e30e90bd2f4d9cc7f Cr-Commit-Position: refs/heads/master@{#372550} Committed: https://crrev.com/b90328470b5d381d539e012f65fca9eb464ba658 Cr-Commit-Position: refs/heads/master@{#372559}

Patch Set 1 : rebase #

Patch Set 2 : #

Total comments: 25

Patch Set 3 : V2 #

Total comments: 4

Patch Set 4 : comments eroman #

Patch Set 5 : fix builders #

Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -68 lines) Patch
M chrome/browser/devtools/device/cast_device_provider.cc View 1 2 2 chunks +4 lines, -5 lines 0 comments Download
M chrome/browser/devtools/device/cast_device_provider_unittest.cc View 1 2 3 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/mdns/dns_sd_device_lister.cc View 1 2 2 chunks +2 lines, -4 lines 0 comments Download
M chrome/browser/local_discovery/endpoint_resolver.h View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/local_discovery/endpoint_resolver.cc View 1 2 3 chunks +8 lines, -8 lines 0 comments Download
M chrome/browser/local_discovery/local_domain_resolver_unittest.cc View 1 2 1 chunk +9 lines, -8 lines 0 comments Download
M chrome/browser/local_discovery/service_discovery_client.h View 1 2 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/local_discovery/service_discovery_client_impl.h View 1 2 3 2 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/local_discovery/service_discovery_client_impl.cc View 1 2 3 4 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/local_discovery/service_discovery_client_mac.mm View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/local_discovery/service_discovery_client_mac_unittest.mm View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/local_discovery/service_discovery_client_mdns.cc View 1 2 2 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/local_discovery/service_discovery_client_unittest.cc View 1 2 3 chunks +9 lines, -12 lines 0 comments Download
M chrome/browser/printing/cloud_print/privet_device_lister_unittest.cc View 1 2 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/tools/service_discovery_sniffer/service_discovery_sniffer.cc View 1 2 3 4 1 chunk +2 lines, -3 lines 0 comments Download

Messages

Total messages: 56 (29 generated)
martijnc
Hi, can you review this patch? Thanks! +vitalybuk: dns_sd_device_lister.cc chrome/browser/local_discovery/* chrome/common/local_discovery/* service_discovery_message_handler.(h/cc) +eroman for net/base/ip_endpoint.(h/cc) ...
5 years ago (2015-12-21 15:23:59 UTC) #10
dgozman
chrome/browser/devtools lgtm
5 years ago (2015-12-21 17:19:50 UTC) #11
eroman
https://codereview.chromium.org/1534583002/diff/180001/chrome/browser/devtools/device/cast_device_provider_unittest.cc File chrome/browser/devtools/device/cast_device_provider_unittest.cc (right): https://codereview.chromium.org/1534583002/diff/180001/chrome/browser/devtools/device/cast_device_provider_unittest.cc#newcode54 chrome/browser/devtools/device/cast_device_provider_unittest.cc:54: cast_service.ip_address = net::IPAddress(address1, sizeof(address1)); Or alternately: ASSERT_TRUE(net::IPAddress::FromIPLiteral("192.168.1.101", &cast_service.ip_address)); https://codereview.chromium.org/1534583002/diff/180001/chrome/browser/extensions/api/mdns/dns_sd_device_lister.cc ...
5 years ago (2015-12-21 20:47:33 UTC) #12
tfarina
Sorry for bumping here in the middle of this review. https://codereview.chromium.org/1534583002/diff/180001/net/base/ip_endpoint.h File net/base/ip_endpoint.h (right): https://codereview.chromium.org/1534583002/diff/180001/net/base/ip_endpoint.h#newcode32 ...
5 years ago (2015-12-21 23:13:36 UTC) #13
eroman
https://codereview.chromium.org/1534583002/diff/180001/net/base/ip_endpoint.h File net/base/ip_endpoint.h (right): https://codereview.chromium.org/1534583002/diff/180001/net/base/ip_endpoint.h#newcode32 net/base/ip_endpoint.h:32: IPEndPoint(const IPAddress& address, uint16_t port); On 2015/12/21 23:13:36, tfarina ...
5 years ago (2015-12-21 23:25:05 UTC) #14
tfarina
https://codereview.chromium.org/1534583002/diff/180001/net/base/ip_endpoint.h File net/base/ip_endpoint.h (right): https://codereview.chromium.org/1534583002/diff/180001/net/base/ip_endpoint.h#newcode32 net/base/ip_endpoint.h:32: IPEndPoint(const IPAddress& address, uint16_t port); On 2015/12/21 23:25:04, eroman ...
5 years ago (2015-12-22 00:20:34 UTC) #15
palmer
https://codereview.chromium.org/1534583002/diff/180001/chrome/browser/devtools/device/cast_device_provider.cc File chrome/browser/devtools/device/cast_device_provider.cc (right): https://codereview.chromium.org/1534583002/diff/180001/chrome/browser/devtools/device/cast_device_provider.cc#newcode175 chrome/browser/devtools/device/cast_device_provider.cc:175: if (!ip_address.IsIPv4() && !ip_address.IsIPv6()) { An IsValid (or is_valid) ...
5 years ago (2015-12-22 01:09:10 UTC) #16
eroman
What is the status of this CL?
4 years, 11 months ago (2016-01-26 23:06:32 UTC) #22
martijnc
On 2016/01/26 at 23:06:32, eroman wrote: > What is the status of this CL? I ...
4 years, 11 months ago (2016-01-26 23:28:34 UTC) #23
eroman
Thanks! I didn't realize the dependent change hadn't landed yet :)
4 years, 11 months ago (2016-01-26 23:59:28 UTC) #24
martijnc
Sorry about the delay, landing the other CLs took a bit longer than I expected. ...
4 years, 11 months ago (2016-01-27 22:50:52 UTC) #31
eroman
lgtm https://codereview.chromium.org/1534583002/diff/360001/chrome/browser/extensions/api/mdns/dns_sd_device_lister.cc File chrome/browser/extensions/api/mdns/dns_sd_device_lister.cc (right): https://codereview.chromium.org/1534583002/diff/360001/chrome/browser/extensions/api/mdns/dns_sd_device_lister.cc#newcode19 chrome/browser/extensions/api/mdns/dns_sd_device_lister.cc:19: if (service_description.ip_address.IsValid()) { For the record, the conversions ...
4 years, 10 months ago (2016-01-28 20:08:44 UTC) #32
martijnc
Thanks you for the review. vitalybuk: Can you take a look at the following files? ...
4 years, 10 months ago (2016-01-29 18:33:45 UTC) #34
Vitaly Buka (NO REVIEWS)
https://code.google.com/p/chromium/codesearch#chromium/src/net/base/ip_address.h&l=81 Maybe also following for consistency? operator> operator>= operator<=
4 years, 10 months ago (2016-01-29 18:48:31 UTC) #35
Vitaly Buka (NO REVIEWS)
lgtm
4 years, 10 months ago (2016-01-29 18:54:02 UTC) #36
martijnc
On 2016/01/29 at 18:48:31, vitalybuka wrote: > https://code.google.com/p/chromium/codesearch#chromium/src/net/base/ip_address.h&l=81 > Maybe also following for consistency? > ...
4 years, 10 months ago (2016-01-30 13:41:32 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1534583002/400001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1534583002/400001
4 years, 10 months ago (2016-01-30 13:41:40 UTC) #40
commit-bot: I haz the power
Committed patchset #4 (id:400001)
4 years, 10 months ago (2016-01-30 14:24:29 UTC) #41
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/aed54d71aad92c60a684f21e30e90bd2f4d9cc7f Cr-Commit-Position: refs/heads/master@{#372550}
4 years, 10 months ago (2016-01-30 14:25:32 UTC) #43
Nico
FAILED: ninja -t msvc -e environment.x86 -- "..\..\third_party/llvm-build/Release+Asserts/bin/clang-cl" -m32 /nologo /showIncludes /FC @obj\chrome\tools\service_discovery_sniffer\service_discovery_sniffer.service_discovery_sniffer.obj.rsp /c ..\..\chrome\tools\service_discovery_sniffer\service_discovery_sniffer.cc ...
4 years, 10 months ago (2016-01-30 14:57:11 UTC) #45
Nico
On the main waterfall too: https://build.chromium.org/p/chromium/builders/Linux%20x64/builds/14840/steps/compile/logs/stdio
4 years, 10 months ago (2016-01-30 14:57:59 UTC) #46
Nico
A revert of this CL (patchset #4 id:400001) has been created in https://codereview.chromium.org/1653573003/ by thakis@chromium.org. ...
4 years, 10 months ago (2016-01-30 14:58:39 UTC) #47
martijnc
vitalybuka: I missed one file; patchset #5 also updates chrome/tools/service_discovery_sniffer/service_discovery_sniffer.cc. 'service_discovery_sniffer' compiles locally now, is ...
4 years, 10 months ago (2016-01-30 18:54:37 UTC) #49
Nico
No. If all targets now build fine locally, just reland and hope for the best ...
4 years, 10 months ago (2016-01-30 19:02:06 UTC) #50
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1534583002/440001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1534583002/440001
4 years, 10 months ago (2016-01-30 19:10:00 UTC) #53
commit-bot: I haz the power
Committed patchset #5 (id:440001)
4 years, 10 months ago (2016-01-30 19:50:37 UTC) #54
commit-bot: I haz the power
4 years, 10 months ago (2016-01-30 19:51:50 UTC) #56
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/b90328470b5d381d539e012f65fca9eb464ba658
Cr-Commit-Position: refs/heads/master@{#372559}

Powered by Google App Engine
This is Rietveld 408576698