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

Issue 1413393003: Change WebRTC IP handling policy from multiple booleans to an enum. (Closed)

Created:
5 years, 2 months ago by guoweis_left_chromium
Modified:
5 years, 1 month ago
CC:
chromium-apps-reviews_chromium.org, chromium-reviews, darin-cc_chromium.org, extensions-reviews_chromium.org, feature-media-reviews_chromium.org, jam, jochen+watch_chromium.org, mcasas+watch_chromium.org, mkwst+moarreviews-renderer_chromium.org, mkwst+moarreviews-shell_chromium.org, mlamouri+watch-content_chromium.org, posciak+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Change WebRTC IP handling policy from multiple booleans to an enum. Previously in M42 we have mutliple routes as a boolean. In M47 dev, we added one more called enable_non_proxied_udp. It becomes clear that we're going to add more modes and some of the combination of booleans are not supported. We're replacing this by an enum (string in preference). To make sure we don't break the existing mutliple_routes options, a check has been put to honor that setting but multiple_routes will become readonly now and will be ignored if the new preference is set. BUG=542765 Committed: https://crrev.com/c537ba208c24c14ca0259e0492041b3f2e6a6eb9 Cr-Commit-Position: refs/heads/master@{#358402}

Patch Set 1 #

Patch Set 2 : #

Total comments: 9

Patch Set 3 : read the multiroutes options. #

Total comments: 9

Patch Set 4 : address peter's comments. #

Total comments: 8

Patch Set 5 : address comments #

Total comments: 13

Patch Set 6 : address devlin's comments. #

Total comments: 13

Patch Set 7 : address devlin comments and also add one more mode. #

Total comments: 7

Patch Set 8 : fix the test. #

Total comments: 3

Patch Set 9 : Address Devlin comments. #

Total comments: 1

Patch Set 10 : fix js indentation #

Patch Set 11 : Fix GN build break #

Patch Set 12 : another try to fix GN build #

Total comments: 8

Patch Set 13 : address comments #

Total comments: 3

Patch Set 14 : make GYP/GN build file more natural #

Total comments: 1

Patch Set 15 : update GYP file with right order. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+196 lines, -29 lines) Patch
M chrome/browser/extensions/api/preference/preference_api.cc View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/preference/preference_apitest.cc View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/renderer_preferences_util.cc View 1 2 3 4 5 2 chunks +17 lines, -4 lines 0 comments Download
M chrome/browser/ui/browser_ui_prefs.cc View 1 2 3 4 5 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/prefs/prefs_tab_helper.cc View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/privacy.json View 1 2 3 4 5 6 7 8 2 chunks +15 lines, -0 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 5 1 chunk +7 lines, -2 lines 0 comments Download
M chrome/test/data/extensions/api_test/preference/standard/test.js View 1 2 3 4 5 6 7 8 9 2 chunks +25 lines, -1 line 0 comments Download
M content/common/view_messages.h View 1 chunk +1 line, -2 lines 0 comments Download
M content/content_common.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +4 lines, -0 lines 0 comments Download
M content/public/common/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +7 lines, -0 lines 0 comments Download
M content/public/common/renderer_preferences.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +4 lines, -8 lines 0 comments Download
M content/public/common/renderer_preferences.cc View 1 chunk +0 lines, -2 lines 0 comments Download
A content/public/common/webrtc_ip_handling_policy.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +32 lines, -0 lines 0 comments Download
A content/public/common/webrtc_ip_handling_policy.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +17 lines, -0 lines 0 comments Download
M content/renderer/media/webrtc/peer_connection_dependency_factory.cc View 1 2 3 4 5 6 3 chunks +49 lines, -8 lines 0 comments Download
M content/shell/browser/shell.cc View 1 2 3 4 2 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 54 (17 generated)
guoweis_left_chromium
5 years, 2 months ago (2015-10-20 22:19:24 UTC) #2
pthatcher1
https://codereview.chromium.org/1413393003/diff/40001/chrome/browser/extensions/api/preference/preference_api.cc File chrome/browser/extensions/api/preference/preference_api.cc (left): https://codereview.chromium.org/1413393003/diff/40001/chrome/browser/extensions/api/preference/preference_api.cc#oldcode124 chrome/browser/extensions/api/preference/preference_api.cc:124: {"webRTCNonProxiedUdpEnabled", prefs::kWebRTCNonProxiedUdpEnabled, Is this going to break the existing ...
5 years, 2 months ago (2015-10-21 00:06:53 UTC) #5
juberti2
https://codereview.chromium.org/1413393003/diff/40001/chrome/browser/extensions/api/preference/preference_api.cc File chrome/browser/extensions/api/preference/preference_api.cc (left): https://codereview.chromium.org/1413393003/diff/40001/chrome/browser/extensions/api/preference/preference_api.cc#oldcode124 chrome/browser/extensions/api/preference/preference_api.cc:124: {"webRTCNonProxiedUdpEnabled", prefs::kWebRTCNonProxiedUdpEnabled, On 2015/10/21 00:06:53, pthatcher1 wrote: > Is ...
5 years, 2 months ago (2015-10-21 00:58:40 UTC) #6
guoweis_left_chromium
PTAL. https://codereview.chromium.org/1413393003/diff/40001/content/public/common/renderer_preferences.cc File content/public/common/renderer_preferences.cc (right): https://codereview.chromium.org/1413393003/diff/40001/content/public/common/renderer_preferences.cc#newcode34 content/public/common/renderer_preferences.cc:34: report_frame_name_changes(false), On 2015/10/21 00:06:53, pthatcher1 wrote: > Do ...
5 years, 2 months ago (2015-10-23 16:40:49 UTC) #9
pthatcher1
https://codereview.chromium.org/1413393003/diff/100001/chrome/browser/renderer_preferences_util.cc File chrome/browser/renderer_preferences_util.cc (right): https://codereview.chromium.org/1413393003/diff/100001/chrome/browser/renderer_preferences_util.cc#newcode51 chrome/browser/renderer_preferences_util.cc:51: pref_service->GetBoolean(prefs::kWebRTCMultipleRoutesEnabled); What if someone had webRTCNonProxiedUdpEnabled set before? Do ...
5 years, 2 months ago (2015-10-23 17:27:29 UTC) #10
guoweis_left_chromium
wfh@chromium.org: Please review changes in view_message.h https://codereview.chromium.org/1413393003/diff/100001/chrome/browser/renderer_preferences_util.cc File chrome/browser/renderer_preferences_util.cc (right): https://codereview.chromium.org/1413393003/diff/100001/chrome/browser/renderer_preferences_util.cc#newcode51 chrome/browser/renderer_preferences_util.cc:51: pref_service->GetBoolean(prefs::kWebRTCMultipleRoutesEnabled); On 2015/10/23 ...
5 years, 2 months ago (2015-10-23 18:24:59 UTC) #12
guoweis_left_chromium
jochen: chrome/browser/DEPS chrome/browser/extensions/api/DEPS chrome/browser/extensions/api/preference/preference_api.cc chrome/browser/extensions/api/preference/preference_apitest.cc chrome/browser/renderer_preferences_util.cc chrome/browser/ui/DEPS chrome/browser/ui/browser_ui_prefs.cc chrome/browser/ui/prefs/prefs_tab_helper.cc chrome/common/extensions/api/privacy.json content/public/common/renderer_preferences.cc content/public/common/renderer_preferences.h content/public/renderer/webrtc_ip_handling_policy.cc content/public/renderer/webrtc_ip_handling_policy.h content/renderer/media/webrtc/peer_connection_dependency_factory.cc ...
5 years, 2 months ago (2015-10-23 18:25:45 UTC) #14
pthatcher2
lgtm
5 years, 2 months ago (2015-10-23 21:07:30 UTC) #17
juberti2
lgtm
5 years, 2 months ago (2015-10-24 00:45:13 UTC) #18
jochen (gone - plz use gerrit)
https://codereview.chromium.org/1413393003/diff/120001/chrome/browser/DEPS File chrome/browser/DEPS (right): https://codereview.chromium.org/1413393003/diff/120001/chrome/browser/DEPS#newcode122 chrome/browser/DEPS:122: "+content/public/renderer", browser can't depend on renderer. i'd propose to ...
5 years, 1 month ago (2015-10-26 15:43:56 UTC) #19
nasko
Few nits. https://codereview.chromium.org/1413393003/diff/120001/content/renderer/media/webrtc/peer_connection_dependency_factory.cc File content/renderer/media/webrtc/peer_connection_dependency_factory.cc (right): https://codereview.chromium.org/1413393003/diff/120001/content/renderer/media/webrtc/peer_connection_dependency_factory.cc#newcode76 content/renderer/media/webrtc/peer_connection_dependency_factory.cc:76: if (preference == content::kWebRTCIPHandlingDefaultPublicInterfaceOnly) This anonymous namespace ...
5 years, 1 month ago (2015-10-26 15:49:49 UTC) #20
Will Harris
nasko can you security review view_messages.h when you do content/ review? Removing myself.
5 years, 1 month ago (2015-10-26 16:31:20 UTC) #22
guoweis_left_chromium
On 2015/10/26 16:31:20, Will Harris wrote: > nasko can you security review view_messages.h when you ...
5 years, 1 month ago (2015-10-26 18:13:17 UTC) #23
jochen (gone - plz use gerrit)
+devlin for extensions
5 years, 1 month ago (2015-10-27 12:19:49 UTC) #25
Devlin
https://codereview.chromium.org/1413393003/diff/160001/chrome/browser/extensions/api/preference/preference_api.cc File chrome/browser/extensions/api/preference/preference_api.cc (left): https://codereview.chromium.org/1413393003/diff/160001/chrome/browser/extensions/api/preference/preference_api.cc#oldcode124 chrome/browser/extensions/api/preference/preference_api.cc:124: {"webRTCNonProxiedUdpEnabled", prefs::kWebRTCNonProxiedUdpEnabled, Does this one not need to be ...
5 years, 1 month ago (2015-10-27 16:13:32 UTC) #26
guoweis_left_chromium
Devlin@, PTAL. Could you also help me with the warning I mentioned? WARNING:root:Could not resolve ...
5 years, 1 month ago (2015-10-27 20:32:00 UTC) #28
Devlin
https://codereview.chromium.org/1413393003/diff/200001/chrome/browser/extensions/api/DEPS File chrome/browser/extensions/api/DEPS (right): https://codereview.chromium.org/1413393003/diff/200001/chrome/browser/extensions/api/DEPS#newcode6 chrome/browser/extensions/api/DEPS:6: "+content/public/common", This is already included in chrome/DEPS - do ...
5 years, 1 month ago (2015-10-27 20:45:44 UTC) #29
guoweis_left_chromium
also added one more mode DEFAULT_PUBLIC_AND_PRIVATE_INTERFACES This will expose one public and private default address. ...
5 years, 1 month ago (2015-10-28 16:39:51 UTC) #30
Devlin
https://codereview.chromium.org/1413393003/diff/200001/chrome/common/extensions/api/privacy.json File chrome/common/extensions/api/privacy.json (right): https://codereview.chromium.org/1413393003/diff/200001/chrome/common/extensions/api/privacy.json#newcode31 chrome/common/extensions/api/privacy.json:31: "deprecated": "Please use $(ref:privacy.webRTCIPHandlingPolicy). This remains read-only for backward ...
5 years, 1 month ago (2015-10-28 22:39:37 UTC) #31
guoweis_webrtc
PTAL. https://codereview.chromium.org/1413393003/diff/220001/chrome/test/data/extensions/api_test/preference/standard/test.js File chrome/test/data/extensions/api_test/preference/standard/test.js (right): https://codereview.chromium.org/1413393003/diff/220001/chrome/test/data/extensions/api_test/preference/standard/test.js#newcode98 chrome/test/data/extensions/api_test/preference/standard/test.js:98: expect({ value: On 2015/10/28 22:39:37, Devlin wrote: > ...
5 years, 1 month ago (2015-10-29 21:34:54 UTC) #33
guoweis_webrtc
On 2015/10/29 21:34:54, guoweis wrote: > PTAL. > > https://codereview.chromium.org/1413393003/diff/220001/chrome/test/data/extensions/api_test/preference/standard/test.js > File chrome/test/data/extensions/api_test/preference/standard/test.js (right): > ...
5 years, 1 month ago (2015-10-30 16:37:29 UTC) #34
guoweis_webrtc
On 2015/10/30 16:37:29, guoweis wrote: > On 2015/10/29 21:34:54, guoweis wrote: > > PTAL. > ...
5 years, 1 month ago (2015-11-02 17:30:31 UTC) #35
Devlin
https://codereview.chromium.org/1413393003/diff/240001/chrome/browser/DEPS File chrome/browser/DEPS (right): https://codereview.chromium.org/1413393003/diff/240001/chrome/browser/DEPS#newcode122 chrome/browser/DEPS:122: "+content/public/common", I'm still confused on why you need this ...
5 years, 1 month ago (2015-11-02 18:00:17 UTC) #36
guoweis_webrtc
On 2015/11/02 18:00:17, Devlin wrote: > https://codereview.chromium.org/1413393003/diff/240001/chrome/browser/DEPS > File chrome/browser/DEPS (right): > > https://codereview.chromium.org/1413393003/diff/240001/chrome/browser/DEPS#newcode122 > ...
5 years, 1 month ago (2015-11-02 18:28:48 UTC) #38
Devlin
extensions lgtm if the bots are happy. https://codereview.chromium.org/1413393003/diff/280001/chrome/test/data/extensions/api_test/preference/standard/test.js File chrome/test/data/extensions/api_test/preference/standard/test.js (right): https://codereview.chromium.org/1413393003/diff/280001/chrome/test/data/extensions/api_test/preference/standard/test.js#newcode102 chrome/test/data/extensions/api_test/preference/standard/test.js:102: 'should receive ...
5 years, 1 month ago (2015-11-02 19:25:46 UTC) #39
nasko
Few comments. https://codereview.chromium.org/1413393003/diff/340001/content/public/common/renderer_preferences.h File content/public/common/renderer_preferences.h (right): https://codereview.chromium.org/1413393003/diff/340001/content/public/common/renderer_preferences.h#newcode97 content/public/common/renderer_preferences.h:97: // of the strings defined in privacy.json. ...
5 years, 1 month ago (2015-11-03 18:54:01 UTC) #40
guoweis_webrtc
PTAL. https://codereview.chromium.org/1413393003/diff/340001/content/public/common/renderer_preferences.h File content/public/common/renderer_preferences.h (right): https://codereview.chromium.org/1413393003/diff/340001/content/public/common/renderer_preferences.h#newcode97 content/public/common/renderer_preferences.h:97: // of the strings defined in privacy.json. Default ...
5 years, 1 month ago (2015-11-03 23:19:22 UTC) #41
nasko
Looks good, but I'm not sure I understand the gypi change. Can you explain why ...
5 years, 1 month ago (2015-11-04 17:34:12 UTC) #42
guoweis_webrtc
https://codereview.chromium.org/1413393003/diff/360001/content/content_common.gypi File content/content_common.gypi (right): https://codereview.chromium.org/1413393003/diff/360001/content/content_common.gypi#newcode827 content/content_common.gypi:827: 'sources!': [ On 2015/11/04 17:34:12, nasko (slow to review) ...
5 years, 1 month ago (2015-11-04 17:38:07 UTC) #43
nasko
https://codereview.chromium.org/1413393003/diff/360001/content/content_common.gypi File content/content_common.gypi (right): https://codereview.chromium.org/1413393003/diff/360001/content/content_common.gypi#newcode827 content/content_common.gypi:827: 'sources!': [ On 2015/11/04 17:38:07, guoweis wrote: > On ...
5 years, 1 month ago (2015-11-04 17:50:58 UTC) #44
nasko
The GN change seems fine, but I'm not certain. I'd defer to someone with better ...
5 years, 1 month ago (2015-11-04 18:33:33 UTC) #45
guoweis_webrtc
brettw@, can you review the content/public/common/BUILD.gn?
5 years, 1 month ago (2015-11-04 18:34:53 UTC) #47
jochen (gone - plz use gerrit)
lgtm
5 years, 1 month ago (2015-11-05 01:30:36 UTC) #48
Will Harris
content/common/view_messages.h lgtm
5 years, 1 month ago (2015-11-06 18:35:04 UTC) #49
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1413393003/400001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1413393003/400001
5 years, 1 month ago (2015-11-06 18:36:26 UTC) #52
commit-bot: I haz the power
Committed patchset #15 (id:400001)
5 years, 1 month ago (2015-11-06 21:20:38 UTC) #53
commit-bot: I haz the power
5 years, 1 month ago (2015-11-06 21:21:22 UTC) #54
Message was sent while issue was closed.
Patchset 15 (id:??) landed as
https://crrev.com/c537ba208c24c14ca0259e0492041b3f2e6a6eb9
Cr-Commit-Position: refs/heads/master@{#358402}

Powered by Google App Engine
This is Rietveld 408576698