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

Issue 2901033002: Host port range policy is no longer ignored in it2me host (Closed)

Created:
3 years, 7 months ago by Gus Smith
Modified:
3 years, 6 months ago
Reviewers:
Sergey Ulanov
CC:
chromium-reviews, chromoting-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Host port range policy is no longer ignored in it2me host. Adds UpdateHostUdpPortRangePolicy into It2MeHost, which is called whenever a policy update contains a port range setting. This port range setting is then stored, and is later used to set the appropriate fields in the NetworkSettings object passed into the TransportContext. BUG=723093 Review-Url: https://codereview.chromium.org/2901033002 Cr-Commit-Position: refs/heads/master@{#475047} Committed: https://chromium.googlesource.com/chromium/src/+/49ccc86fa6f0112e768dda3b7dd2d78529275ca8

Patch Set 1 #

Total comments: 3

Patch Set 2 : Host port range policy is no longer ignored in it2me host #

Patch Set 3 : Host port range policy is no longer ignored in it2me host #

Total comments: 10

Patch Set 4 : Host port range policy is no longer ignored in it2me host #

Total comments: 3

Patch Set 5 : Host port range policy is no longer ignored in it2me host #

Total comments: 6

Patch Set 6 : Host port range policy is no longer ignored in it2me host #

Unified diffs Side-by-side diffs Delta from patch set Stats (+70 lines, -4 lines) Patch
M remoting/host/chromoting_host.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M remoting/host/it2me/it2me_host.h View 1 2 3 4 chunks +9 lines, -0 lines 0 comments Download
M remoting/host/it2me/it2me_host.cc View 1 2 3 4 5 3 chunks +30 lines, -2 lines 0 comments Download
M remoting/host/it2me/it2me_host_unittest.cc View 1 2 3 5 chunks +27 lines, -2 lines 0 comments Download

Messages

Total messages: 27 (15 generated)
Sergey Ulanov
Looking more at the code I think it's possible to unittest this change without connecting ...
3 years, 7 months ago (2017-05-23 20:11:01 UTC) #3
Gus Smith
Sergey - this is ready for another review.
3 years, 7 months ago (2017-05-25 18:49:58 UTC) #11
Gus Smith
Sergey - this is ready for another review.
3 years, 7 months ago (2017-05-25 18:49:58 UTC) #12
Sergey Ulanov
https://codereview.chromium.org/2901033002/diff/40001/remoting/host/it2me/it2me_host.cc File remoting/host/it2me/it2me_host.cc (right): https://codereview.chromium.org/2901033002/diff/40001/remoting/host/it2me/it2me_host.cc#newcode183 remoting/host/it2me/it2me_host.cc:183: if (!PortRange::Parse(udp_port_range_string_, &port_range)) { It looks like PolicyWatcher is ...
3 years, 7 months ago (2017-05-25 19:34:53 UTC) #16
Gus Smith
https://codereview.chromium.org/2901033002/diff/40001/remoting/host/it2me/it2me_host.cc File remoting/host/it2me/it2me_host.cc (right): https://codereview.chromium.org/2901033002/diff/40001/remoting/host/it2me/it2me_host.cc#newcode183 remoting/host/it2me/it2me_host.cc:183: if (!PortRange::Parse(udp_port_range_string_, &port_range)) { On 2017/05/25 19:34:53, Sergey Ulanov ...
3 years, 7 months ago (2017-05-25 21:39:09 UTC) #17
Sergey Ulanov
https://codereview.chromium.org/2901033002/diff/60001/remoting/host/it2me/it2me_host.cc File remoting/host/it2me/it2me_host.cc (right): https://codereview.chromium.org/2901033002/diff/60001/remoting/host/it2me/it2me_host.cc#newcode203 remoting/host/it2me/it2me_host.cc:203: network_settings.port_range.min_port = Setting port range here makes sense only ...
3 years, 7 months ago (2017-05-25 22:24:39 UTC) #18
Gus Smith
https://codereview.chromium.org/2901033002/diff/60001/remoting/host/it2me/it2me_host.cc File remoting/host/it2me/it2me_host.cc (right): https://codereview.chromium.org/2901033002/diff/60001/remoting/host/it2me/it2me_host.cc#newcode203 remoting/host/it2me/it2me_host.cc:203: network_settings.port_range.min_port = On 2017/05/25 22:24:38, Sergey Ulanov wrote: > ...
3 years, 7 months ago (2017-05-25 22:55:59 UTC) #19
Sergey Ulanov
Code looks good, just couple needs about the comments. https://codereview.chromium.org/2901033002/diff/60001/remoting/host/it2me/it2me_host.cc File remoting/host/it2me/it2me_host.cc (right): https://codereview.chromium.org/2901033002/diff/60001/remoting/host/it2me/it2me_host.cc#newcode203 remoting/host/it2me/it2me_host.cc:203: ...
3 years, 7 months ago (2017-05-26 00:40:09 UTC) #20
Gus Smith
https://codereview.chromium.org/2901033002/diff/50005/remoting/host/it2me/it2me_host.cc File remoting/host/it2me/it2me_host.cc (right): https://codereview.chromium.org/2901033002/diff/50005/remoting/host/it2me/it2me_host.cc#newcode199 remoting/host/it2me/it2me_host.cc:199: // Update port range only if it has not ...
3 years, 6 months ago (2017-05-26 15:59:11 UTC) #21
Sergey Ulanov
lgtm
3 years, 6 months ago (2017-05-26 17:02:22 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2901033002/90001
3 years, 6 months ago (2017-05-26 17:06:38 UTC) #24
commit-bot: I haz the power
3 years, 6 months ago (2017-05-26 17:36:01 UTC) #27
Message was sent while issue was closed.
Committed patchset #6 (id:90001) as
https://chromium.googlesource.com/chromium/src/+/49ccc86fa6f0112e768dda3b7dd2...

Powered by Google App Engine
This is Rietveld 408576698