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

Issue 2127653002: Add policy to control valid UDP port range in WebRTC (Closed)

Created:
4 years, 5 months ago by Guido Urdaneta
Modified:
4 years, 4 months ago
CC:
asvitkine+watch_chromium.org, chromium-apps-reviews_chromium.org, chromium-reviews, darin-cc_chromium.org, extensions-reviews_chromium.org, feature-media-reviews_chromium.org, jam, mcasas+watch+vc_chromium.org, miu+watch_chromium.org, mlamouri+watch-content_chromium.org, posciak+watch_chromium.org, tnagel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add policy to control valid UDP port range in WebRTC BUG=342476 Committed: https://crrev.com/ca055a5420598ca1b7cae3eb825829248d841de8 Cr-Commit-Position: refs/heads/master@{#411300}

Patch Set 1 #

Patch Set 2 : rebase #

Total comments: 7

Patch Set 3 : fix bugs #

Patch Set 4 : rebase + some fixes #

Total comments: 4

Patch Set 5 : sky's comments and rebase #

Total comments: 10

Patch Set 6 : tnagel's comments #

Patch Set 7 : tnagel's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+167 lines, -2 lines) Patch
M chrome/browser/extensions/api/preference/preference_api.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/policy/configuration_policy_handler_list_factory.cc View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/policy/policy_browsertest.cc View 1 2 3 4 3 chunks +54 lines, -0 lines 0 comments Download
M chrome/browser/renderer_preferences_util.cc View 1 2 3 chunks +48 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser_ui_prefs.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/prefs/prefs_tab_helper.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/test/data/policy/policy_test_cases.json View 1 2 3 4 1 chunk +8 lines, -0 lines 0 comments Download
M components/policy/resources/policy_templates.json View 1 2 3 4 5 6 2 chunks +18 lines, -1 line 0 comments Download
M content/common/view_messages.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M content/public/common/renderer_preferences.h View 1 chunk +5 lines, -0 lines 0 comments Download
M content/public/common/renderer_preferences.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M content/renderer/media/webrtc/peer_connection_dependency_factory.cc View 1 2 3 4 chunks +17 lines, -1 line 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 68 (28 generated)
Guido Urdaneta
Hi, PTAL
4 years, 5 months ago (2016-07-06 08:49:52 UTC) #2
Guido Urdaneta
https://codereview.chromium.org/2127653002/diff/20001/chrome/browser/renderer_preferences_util.cc File chrome/browser/renderer_preferences_util.cc (right): https://codereview.chromium.org/2127653002/diff/20001/chrome/browser/renderer_preferences_util.cc#newcode37 chrome/browser/renderer_preferences_util.cc:37: // Parses a string |range| with a port range ...
4 years, 5 months ago (2016-07-06 08:56:55 UTC) #3
tommi (sloooow) - chröme
lgtm - nice! https://codereview.chromium.org/2127653002/diff/20001/chrome/browser/renderer_preferences_util.cc File chrome/browser/renderer_preferences_util.cc (right): https://codereview.chromium.org/2127653002/diff/20001/chrome/browser/renderer_preferences_util.cc#newcode37 chrome/browser/renderer_preferences_util.cc:37: // Parses a string |range| with ...
4 years, 5 months ago (2016-07-06 10:46:43 UTC) #4
Guido Urdaneta
https://codereview.chromium.org/2127653002/diff/20001/chrome/browser/renderer_preferences_util.cc File chrome/browser/renderer_preferences_util.cc (right): https://codereview.chromium.org/2127653002/diff/20001/chrome/browser/renderer_preferences_util.cc#newcode64 chrome/browser/renderer_preferences_util.cc:64: max_port_uint > UINT16_MAX) On 2016/07/06 10:46:43, tommi-chrömium wrote: > ...
4 years, 5 months ago (2016-07-07 09:27:55 UTC) #5
tommi (sloooow) - chröme
On 2016/07/07 09:27:55, Guido Urdaneta wrote: > https://codereview.chromium.org/2127653002/diff/20001/chrome/browser/renderer_preferences_util.cc > File chrome/browser/renderer_preferences_util.cc (right): > > https://codereview.chromium.org/2127653002/diff/20001/chrome/browser/renderer_preferences_util.cc#newcode64 ...
4 years, 5 months ago (2016-07-07 09:55:07 UTC) #6
Guido Urdaneta
On 2016/07/07 09:55:07, tommi-chrömium wrote: > On 2016/07/07 09:27:55, Guido Urdaneta wrote: > > > ...
4 years, 5 months ago (2016-07-08 11:24:16 UTC) #7
Guido Urdaneta
https://codereview.chromium.org/2127653002/diff/20001/components/policy/resources/policy_templates.json File components/policy/resources/policy_templates.json (right): https://codereview.chromium.org/2127653002/diff/20001/components/policy/resources/policy_templates.json#newcode8755 components/policy/resources/policy_templates.json:8755: 'example_value': '10400-10409', On 2016/07/06 10:46:43, tommi-chrömium wrote: > nit: ...
4 years, 5 months ago (2016-07-11 17:18:37 UTC) #8
tommi (sloooow) - chröme
Great. Thanks for the update. On Mon, Jul 11, 2016 at 7:18 PM <guidou@chromium.org> wrote: ...
4 years, 5 months ago (2016-07-11 17:36:27 UTC) #9
Guido Urdaneta
mek@chromium.org: Please review changes in chrome/browser/extensions/api mkwst@chromium.org: Please review changes in content/common/ (IPC) and tools/metrics/histograms ...
4 years, 4 months ago (2016-08-01 16:59:59 UTC) #13
Guido Urdaneta
+isherman@chromium.org: Please review histograms.xml +mkwst@chromium.org: Please review IPC (content/common/view_messages.h)
4 years, 4 months ago (2016-08-01 17:02:19 UTC) #17
Ilya Sherman
histograms.xml lgtm
4 years, 4 months ago (2016-08-01 18:07:13 UTC) #20
Marijn Kruisselbrink
extensions lgtm
4 years, 4 months ago (2016-08-01 22:44:42 UTC) #21
Mike West
Adding these two items to the IPC LGTM.
4 years, 4 months ago (2016-08-02 05:24:45 UTC) #22
jochen (gone - plz use gerrit)
is everything in this CL already covered?
4 years, 4 months ago (2016-08-02 15:29:40 UTC) #23
Guido Urdaneta
On 2016/08/02 15:29:40, jochen wrote: > is everything in this CL already covered? We are ...
4 years, 4 months ago (2016-08-02 15:45:47 UTC) #24
Peter Kasting
c/b/ui/ LGTM
4 years, 4 months ago (2016-08-03 01:26:16 UTC) #25
jochen (gone - plz use gerrit)
I guess that's covered by tnagel
4 years, 4 months ago (2016-08-03 15:29:08 UTC) #26
Guido Urdaneta
On 2016/08/03 15:29:08, jochen wrote: > I guess that's covered by tnagel Yes, the set ...
4 years, 4 months ago (2016-08-03 15:52:48 UTC) #27
Guido Urdaneta
cschuet: Can you take a look at */policy/* ?
4 years, 4 months ago (2016-08-08 09:56:08 UTC) #29
cschuet (SLOW)
On 2016/08/08 09:56:08, Guido Urdaneta wrote: > cschuet: Can you take a look at */policy/* ...
4 years, 4 months ago (2016-08-08 09:58:51 UTC) #30
Guido Urdaneta
pfeldman@chromium.org: please review content/public sky@chromium.org: please review chrome/browser
4 years, 4 months ago (2016-08-08 11:26:51 UTC) #34
sky
LGTM https://codereview.chromium.org/2127653002/diff/60001/chrome/browser/policy/policy_browsertest.cc File chrome/browser/policy/policy_browsertest.cc (right): https://codereview.chromium.org/2127653002/diff/60001/chrome/browser/policy/policy_browsertest.cc#newcode3759 chrome/browser/policy/policy_browsertest.cc:3759: }; nit: private: DISALLOW... https://codereview.chromium.org/2127653002/diff/60001/chrome/browser/policy/policy_browsertest.cc#newcode3772 chrome/browser/policy/policy_browsertest.cc:3772: EXPECT_EQ("10000-10100", port_range); ...
4 years, 4 months ago (2016-08-08 15:20:38 UTC) #35
Guido Urdaneta
https://codereview.chromium.org/2127653002/diff/60001/chrome/browser/policy/policy_browsertest.cc File chrome/browser/policy/policy_browsertest.cc (right): https://codereview.chromium.org/2127653002/diff/60001/chrome/browser/policy/policy_browsertest.cc#newcode3759 chrome/browser/policy/policy_browsertest.cc:3759: }; On 2016/08/08 15:20:38, sky wrote: > nit: private: ...
4 years, 4 months ago (2016-08-08 16:27:11 UTC) #38
Guido Urdaneta
+jam: can you take a look at content/public?
4 years, 4 months ago (2016-08-10 08:39:08 UTC) #42
jam
lgtm
4 years, 4 months ago (2016-08-10 17:31:09 UTC) #43
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/2127653002/80001
4 years, 4 months ago (2016-08-11 03:57:23 UTC) #46
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/235693)
4 years, 4 months ago (2016-08-11 04:05:45 UTC) #48
Guido Urdaneta
tnagel: Can you take a look at components/policy/resources/policy_templates.json ?
4 years, 4 months ago (2016-08-11 04:15:20 UTC) #50
Thiemo Nagel
https://codereview.chromium.org/2127653002/diff/80001/chrome/test/data/policy/policy_test_cases.json File chrome/test/data/policy/policy_test_cases.json (right): https://codereview.chromium.org/2127653002/diff/80001/chrome/test/data/policy/policy_test_cases.json#newcode1955 chrome/test/data/policy/policy_test_cases.json:1955: "os": ["win", "linux", "mac", "chromeos", "android"], From policy_templates.json it ...
4 years, 4 months ago (2016-08-11 09:29:27 UTC) #51
Guido Urdaneta
https://codereview.chromium.org/2127653002/diff/80001/chrome/test/data/policy/policy_test_cases.json File chrome/test/data/policy/policy_test_cases.json (right): https://codereview.chromium.org/2127653002/diff/80001/chrome/test/data/policy/policy_test_cases.json#newcode1955 chrome/test/data/policy/policy_test_cases.json:1955: "os": ["win", "linux", "mac", "chromeos", "android"], On 2016/08/11 09:29:26, ...
4 years, 4 months ago (2016-08-11 10:10:25 UTC) #54
Thiemo Nagel
lgtm % comment https://codereview.chromium.org/2127653002/diff/80001/components/policy/resources/policy_templates.json File components/policy/resources/policy_templates.json (right): https://codereview.chromium.org/2127653002/diff/80001/components/policy/resources/policy_templates.json#newcode8811 components/policy/resources/policy_templates.json:8811: 'desc': '''Restricts the UDP port range ...
4 years, 4 months ago (2016-08-11 10:22:32 UTC) #55
Guido Urdaneta
https://codereview.chromium.org/2127653002/diff/80001/components/policy/resources/policy_templates.json File components/policy/resources/policy_templates.json (right): https://codereview.chromium.org/2127653002/diff/80001/components/policy/resources/policy_templates.json#newcode8811 components/policy/resources/policy_templates.json:8811: 'desc': '''Restricts the UDP port range used by WebRTC ...
4 years, 4 months ago (2016-08-11 10:31:20 UTC) #56
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/2127653002/120001
4 years, 4 months ago (2016-08-11 10:31:44 UTC) #59
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 4 months ago (2016-08-11 11:16:12 UTC) #61
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/ca055a5420598ca1b7cae3eb825829248d841de8 Cr-Commit-Position: refs/heads/master@{#411300}
4 years, 4 months ago (2016-08-11 11:18:10 UTC) #63
pilgrim_google
On 2016/08/11 at 11:18:10, commit-bot wrote: > Patchset 7 (id:??) landed as https://crrev.com/ca055a5420598ca1b7cae3eb825829248d841de8 > Cr-Commit-Position: ...
4 years, 4 months ago (2016-08-11 17:20:02 UTC) #64
pilgrim_google
On 2016/08/11 at 17:20:02, pilgrim_google wrote: > On 2016/08/11 at 11:18:10, commit-bot wrote: > > ...
4 years, 4 months ago (2016-08-11 17:29:00 UTC) #65
Guido Urdaneta
On 2016/08/11 17:29:00, pilgrim_google wrote: > On 2016/08/11 at 17:20:02, pilgrim_google wrote: > > On ...
4 years, 4 months ago (2016-08-11 19:12:35 UTC) #66
Thiemo Nagel
> My understanding is that policy::key::kWebRtcUdpPortRange is generated from the > policy_templates.json file, while the ...
4 years, 4 months ago (2016-08-12 12:20:50 UTC) #67
pilgrim_google
4 years, 4 months ago (2016-08-12 14:14:21 UTC) #68
Message was sent while issue was closed.
On 2016/08/12 at 12:20:50, tnagel wrote:
> > My understanding is that policy::key::kWebRtcUdpPortRange is generated from
the
> > policy_templates.json file, while the prefs::kWebRTCUDPPortRange is defined
in
> > chrome/common/pref_names.h
> > They are associated in configuration_policy_handler_list_factory.cc and that
> > should be it.
> > The difference in case is due to the different conventions in the places
where
> > both names are defined, but I don't see anything wrong with that. The main
> > waterfall seems to be OK with it too.
> > 
> > tnagel: can you confirm?
> 
> That sounds correct to me.
> 
> Pilgrim, have you tried blowing away your out directory and recompiling?

No longer able to reproduce. No idea what changed. Sorry for the spam.

Powered by Google App Engine
This is Rietveld 408576698