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

Issue 209323002: New policies: enable/disable relay; port range (Closed)

Created:
6 years, 9 months ago by dcaiafa
Modified:
6 years, 7 months ago
CC:
chromium-reviews, chromoting-reviews_chromium.org
Visibility:
Public.

Description

New policies: enable/disable relay; port range Add new Chromoting policies: "RemoteAccessHostAllowRelayedConnection" bool, default true It can be set to false to disable the use of relay servers if NAT traversal is enabled. "RemoteAccessHostUdpPortRange" string, default "" Can be used to specify a range in the form "<min-port>-<max-port>" to restrict the range of UDP ports available to the host for connections. E.g. "12400-12409" BUG=355168 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=267234

Patch Set 1 #

Total comments: 6

Patch Set 2 : Added a few more tests. #

Total comments: 2

Patch Set 3 : policy_templates.json; addressed other CR comments. #

Total comments: 14

Patch Set 4 : Addressed CR comments. #

Total comments: 6

Patch Set 5 : Addressed even more CR comments. #

Total comments: 1

Patch Set 6 : Sync to ToT #

Total comments: 4

Patch Set 7 : Rebase ToT #

Patch Set 8 : Fixed android build. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+353 lines, -32 lines) Patch
M chrome/browser/policy/configuration_policy_handler_list_factory.cc View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 5 6 1 chunk +11 lines, -0 lines 0 comments Download
M chrome/test/data/policy/policy_test_cases.json View 1 2 3 4 5 1 chunk +16 lines, -0 lines 0 comments Download
M components/policy/resources/policy_templates.json View 1 2 3 4 5 6 3 chunks +38 lines, -2 lines 0 comments Download
M remoting/client/jni/chromoting_jni_instance.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M remoting/client/plugin/chromoting_instance.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M remoting/host/it2me/it2me_host.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M remoting/host/policy_hack/policy_watcher.h View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M remoting/host/policy_hack/policy_watcher.cc View 1 2 3 chunks +9 lines, -0 lines 0 comments Download
M remoting/host/policy_hack/policy_watcher_unittest.cc View 5 chunks +47 lines, -0 lines 0 comments Download
M remoting/host/remoting_me2me_host.cc View 1 2 3 4 7 chunks +80 lines, -5 lines 0 comments Download
M remoting/jingle_glue/chromium_port_allocator.cc View 1 2 1 chunk +7 lines, -5 lines 0 comments Download
M remoting/jingle_glue/network_settings.h View 1 2 3 4 2 chunks +31 lines, -11 lines 0 comments Download
A remoting/jingle_glue/network_settings.cc View 1 2 3 1 chunk +45 lines, -0 lines 0 comments Download
A remoting/jingle_glue/network_settings_unittest.cc View 1 2 3 1 chunk +41 lines, -0 lines 0 comments Download
M remoting/protocol/libjingle_transport_factory.cc View 1 2 3 2 chunks +5 lines, -6 lines 0 comments Download
M remoting/remoting_srcs.gypi View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M remoting/remoting_test.gypi View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
dcaiafa
6 years, 9 months ago (2014-03-22 00:40:18 UTC) #1
Sergey Ulanov
https://codereview.chromium.org/209323002/diff/1/remoting/base/util.h File remoting/base/util.h (right): https://codereview.chromium.org/209323002/diff/1/remoting/base/util.h#newcode101 remoting/base/util.h:101: bool ParsePortRange(const std::string& port_range, int* out_min_port, nit:move out_min_port to ...
6 years, 9 months ago (2014-03-24 23:37:12 UTC) #2
dcaiafa
ptal https://codereview.chromium.org/209323002/diff/1/remoting/base/util.h File remoting/base/util.h (right): https://codereview.chromium.org/209323002/diff/1/remoting/base/util.h#newcode101 remoting/base/util.h:101: bool ParsePortRange(const std::string& port_range, int* out_min_port, On 2014/03/24 ...
6 years, 9 months ago (2014-03-26 15:29:16 UTC) #3
Sergey Ulanov
https://codereview.chromium.org/209323002/diff/30001/chrome/test/data/policy/policy_test_cases.json File chrome/test/data/policy/policy_test_cases.json (right): https://codereview.chromium.org/209323002/diff/30001/chrome/test/data/policy/policy_test_cases.json#newcode251 chrome/test/data/policy/policy_test_cases.json:251: { "pref": "remote_access.host_allow_gnubby_auth" } allow_relayed_connection https://codereview.chromium.org/209323002/diff/30001/components/policy/resources/policy_templates.json File components/policy/resources/policy_templates.json (right): ...
6 years, 9 months ago (2014-03-27 18:31:19 UTC) #4
dcaiafa
ptal https://codereview.chromium.org/209323002/diff/30001/chrome/test/data/policy/policy_test_cases.json File chrome/test/data/policy/policy_test_cases.json (right): https://codereview.chromium.org/209323002/diff/30001/chrome/test/data/policy/policy_test_cases.json#newcode251 chrome/test/data/policy/policy_test_cases.json:251: { "pref": "remote_access.host_allow_gnubby_auth" } On 2014/03/27 18:31:20, Sergey ...
6 years, 9 months ago (2014-03-27 19:32:23 UTC) #5
Sergey Ulanov
https://codereview.chromium.org/209323002/diff/70001/remoting/jingle_glue/network_settings.h File remoting/jingle_glue/network_settings.h (right): https://codereview.chromium.org/209323002/diff/70001/remoting/jingle_glue/network_settings.h#newcode33 remoting/jingle_glue/network_settings.h:33: NAT_TRAVERSAL_STUN = 0x1 | NAT_TRAVERSAL_OUTGOING, this should be 2, ...
6 years, 9 months ago (2014-03-27 19:52:25 UTC) #6
Sergey Ulanov
lgtm after my comments are addressed.
6 years, 9 months ago (2014-03-27 19:52:52 UTC) #7
dcaiafa
Thanks! https://codereview.chromium.org/209323002/diff/70001/remoting/jingle_glue/network_settings.h File remoting/jingle_glue/network_settings.h (right): https://codereview.chromium.org/209323002/diff/70001/remoting/jingle_glue/network_settings.h#newcode33 remoting/jingle_glue/network_settings.h:33: NAT_TRAVERSAL_STUN = 0x1 | NAT_TRAVERSAL_OUTGOING, On 2014/03/27 19:52:26, ...
6 years, 9 months ago (2014-03-27 23:36:21 UTC) #8
Sergey Ulanov
LGTM. Thanks! https://codereview.chromium.org/209323002/diff/90001/remoting/jingle_glue/network_settings.h File remoting/jingle_glue/network_settings.h (right): https://codereview.chromium.org/209323002/diff/90001/remoting/jingle_glue/network_settings.h#newcode48 remoting/jingle_glue/network_settings.h:48: DCHECK(!(flags & (NAT_TRAVERSAL_STUN | NAT_TRAVERSAL_RELAY)) || nit: ...
6 years, 9 months ago (2014-03-27 23:43:06 UTC) #9
dcaiafa
+mnissler for chrome policy related changes (everything not remoting/...)
6 years, 8 months ago (2014-04-25 19:22:30 UTC) #10
Mattias Nissler (ping if slow)
Deferring to Joao, as you'll need his LGTM for policy_templates.json anyways.
6 years, 7 months ago (2014-04-28 11:40:44 UTC) #11
Joao da Silva
lgtm See inline about the policy component: it should be possible for the remoting code ...
6 years, 7 months ago (2014-04-28 12:38:28 UTC) #12
dcaiafa
+Ilya for histograms.xml https://codereview.chromium.org/209323002/diff/110001/components/policy/resources/policy_templates.json File components/policy/resources/policy_templates.json (right): https://codereview.chromium.org/209323002/diff/110001/components/policy/resources/policy_templates.json#newcode675 components/policy/resources/policy_templates.json:675: If this setting is enabled, then ...
6 years, 7 months ago (2014-04-29 18:40:30 UTC) #13
Ilya Sherman
histograms.xml lgtm
6 years, 7 months ago (2014-04-29 20:03:07 UTC) #14
dcaiafa
The CQ bit was checked by dcaiafa@chromium.org
6 years, 7 months ago (2014-04-29 20:24:07 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dcaiafa@chromium.org/209323002/130001
6 years, 7 months ago (2014-04-29 20:43:34 UTC) #16
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-04-29 20:58:15 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg on tryserver.chromium
6 years, 7 months ago (2014-04-29 20:58:16 UTC) #18
dcaiafa
The CQ bit was checked by dcaiafa@chromium.org
6 years, 7 months ago (2014-04-30 14:12:37 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dcaiafa@chromium.org/209323002/150001
6 years, 7 months ago (2014-04-30 14:13:01 UTC) #20
commit-bot: I haz the power
6 years, 7 months ago (2014-04-30 16:47:34 UTC) #21
Message was sent while issue was closed.
Change committed as 267234

Powered by Google App Engine
This is Rietveld 408576698