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

Issue 2631433002: Rename RTCPeerConnection.updateIce to setConfiguration and make it work. (Closed)

Created:
3 years, 11 months ago by Taylor_Brandstetter
Modified:
3 years, 10 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, posciak+watch_chromium.org, jam, haraken, feature-media-reviews_chromium.org, dglazkov+blink, darin-cc_chromium.org, blink-reviews, blink-reviews-api_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Rename RTCPeerConnection.updateIce to setConfiguration and make it work. In addition to the renaming/basic wiring up, this CL adds a mechanism for passing error information between webrtc/chromium and blink. In this CL, it's only used for an InvalidModificationError. Intent to Implement and Ship setConfiguration: https://groups.google.com/a/chromium.org/d/msg/blink-dev/wh74Pd37LUQ/45Dx81Y2BgAJ Intent to Deprecate and Remove updateIce: https://groups.google.com/a/chromium.org/d/msg/blink-dev/9gq36Wl4Jwo/a8-rZOqCAgAJ BUG=chromium:587453 Review-Url: https://codereview.chromium.org/2631433002 Cr-Commit-Position: refs/heads/master@{#446512} Committed: https://chromium.googlesource.com/chromium/src/+/9853d6c5883e860ff52b5447b17f50907ffee434

Patch Set 1 #

Patch Set 2 : Fixing test code #

Total comments: 2

Patch Set 3 : Fixing mock PC handler, using DCHECK for default case in switch statement #

Total comments: 1

Patch Set 4 : NOTREACHED instead of DCHECK(false) #

Patch Set 5 : Adding content_browsertest. #

Total comments: 2

Patch Set 6 : Simplifying signature of WebRTCPeerConnectionHandler::setConfiguration. #

Total comments: 9

Patch Set 7 : Addressing comments. #

Patch Set 8 : Rebase onto master #

Patch Set 9 : Remove webrtc roll from this CL #

Patch Set 10 : Updating layout tests. #

Total comments: 2

Patch Set 11 : Remove V8RTCPeerConnection_UpdateIce_Method from UseCounter.h #

Patch Set 12 : Attempt to fix Windows link error. #

Patch Set 13 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+324 lines, -36 lines) Patch
M components/test_runner/mock_webrtc_peer_connection_handler.h View 1 2 3 4 5 2 chunks +2 lines, -1 line 0 comments Download
M components/test_runner/mock_webrtc_peer_connection_handler.cc View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/webrtc/webrtc_browsertest.cc View 1 2 3 4 2 chunks +17 lines, -0 lines 0 comments Download
M content/renderer/media/mock_peer_connection_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +7 lines, -1 line 0 comments Download
M content/renderer/media/mock_peer_connection_impl.cc View 1 1 chunk +7 lines, -2 lines 0 comments Download
M content/renderer/media/rtc_peer_connection_handler.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/media/rtc_peer_connection_handler.cc View 1 2 3 4 5 6 4 chunks +51 lines, -2 lines 0 comments Download
M content/renderer/media/rtc_peer_connection_handler_unittest.cc View 1 2 3 4 5 6 7 2 chunks +16 lines, -1 line 0 comments Download
A content/test/data/media/peerconnection-setConfiguration.html View 1 2 3 4 5 6 1 chunk +144 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/webrtc/rtcpeerconnection/rtcpeerconnection-idl-expected.txt View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/virtual/stable/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/virtual/stable/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/frame/UseCounter.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp View 1 2 3 4 5 6 7 3 chunks +19 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.idl View 2 chunks +1 line, -2 lines 0 comments Download
M third_party/WebKit/public/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
A third_party/WebKit/public/platform/WebRTCError.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +42 lines, -0 lines 0 comments Download
M third_party/WebKit/public/platform/WebRTCPeerConnectionHandler.h View 1 2 3 4 5 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 45 (17 generated)
Taylor_Brandstetter
dcheng@chromium.org: Please review changes in third_party/WebKit/public/ perkj@chromium.org: Please review changes in content/renderer/media/ guidou@chromium.org: Please review ...
3 years, 11 months ago (2017-01-12 02:10:29 UTC) #3
perkj_chrome
Can you please add a content_browsertest or blink layout test for this as well please. ...
3 years, 11 months ago (2017-01-12 08:56:19 UTC) #4
Taylor_Brandstetter
On 2017/01/12 08:56:19, perkj_chrome wrote: > Can you please add a content_browsertest or blink layout ...
3 years, 11 months ago (2017-01-12 20:32:20 UTC) #5
Taylor_Brandstetter
On 2017/01/12 20:32:20, Taylor_Brandstetter wrote: > On 2017/01/12 08:56:19, perkj_chrome wrote: > > Can you ...
3 years, 11 months ago (2017-01-12 21:53:41 UTC) #6
perkj_chrome
Guido- Do you know that the best way is to test this?- See Taylors question.
3 years, 11 months ago (2017-01-13 09:09:56 UTC) #7
perkj_chrome
lgtm % comment and agree with Guido how to test from js. https://codereview.chromium.org/2631433002/diff/40001/content/renderer/media/rtc_peer_connection_handler.cc File content/renderer/media/rtc_peer_connection_handler.cc ...
3 years, 11 months ago (2017-01-13 09:14:06 UTC) #8
Guido Urdaneta
To test the non-Blink parts of the code from JS you need a content_browsertest. Layout ...
3 years, 11 months ago (2017-01-13 15:01:59 UTC) #9
Taylor_Brandstetter
Added content_browsertest. perkj, can you please review the test? tommyw@chromium.org: Please review changes in test_runner. ...
3 years, 11 months ago (2017-01-13 19:14:19 UTC) #11
dcheng
https://codereview.chromium.org/2631433002/diff/80001/third_party/WebKit/public/platform/WebRTCPeerConnectionHandler.h File third_party/WebKit/public/platform/WebRTCPeerConnectionHandler.h (right): https://codereview.chromium.org/2631433002/diff/80001/third_party/WebKit/public/platform/WebRTCPeerConnectionHandler.h#newcode76 third_party/WebKit/public/platform/WebRTCPeerConnectionHandler.h:76: virtual bool setConfiguration(const WebRTCConfiguration&, WebRTCError&) = 0; My personal ...
3 years, 11 months ago (2017-01-13 23:10:38 UTC) #12
Taylor_Brandstetter
https://codereview.chromium.org/2631433002/diff/80001/third_party/WebKit/public/platform/WebRTCPeerConnectionHandler.h File third_party/WebKit/public/platform/WebRTCPeerConnectionHandler.h (right): https://codereview.chromium.org/2631433002/diff/80001/third_party/WebKit/public/platform/WebRTCPeerConnectionHandler.h#newcode76 third_party/WebKit/public/platform/WebRTCPeerConnectionHandler.h:76: virtual bool setConfiguration(const WebRTCConfiguration&, WebRTCError&) = 0; On 2017/01/13 ...
3 years, 11 months ago (2017-01-14 00:08:40 UTC) #13
perkj_chrome
Sorry about the delay. Forgot about this yesterday. still lgtm Note that Tommy W is ...
3 years, 11 months ago (2017-01-17 09:08:01 UTC) #14
dcheng
https://codereview.chromium.org/2631433002/diff/100001/content/renderer/media/rtc_peer_connection_handler.cc File content/renderer/media/rtc_peer_connection_handler.cc (right): https://codereview.chromium.org/2631433002/diff/100001/content/renderer/media/rtc_peer_connection_handler.cc#newcode1452 content/renderer/media/rtc_peer_connection_handler.cc:1452: DCHECK(ret == (webrtc_error.type() == webrtc::RTCErrorType::NONE)); Nit: DCHECK_EQ https://codereview.chromium.org/2631433002/diff/100001/content/renderer/media/rtc_peer_connection_handler.cc#newcode1454 content/renderer/media/rtc_peer_connection_handler.cc:1454: ...
3 years, 11 months ago (2017-01-17 09:32:03 UTC) #15
Taylor_Brandstetter
https://codereview.chromium.org/2631433002/diff/100001/content/renderer/media/rtc_peer_connection_handler.cc File content/renderer/media/rtc_peer_connection_handler.cc (right): https://codereview.chromium.org/2631433002/diff/100001/content/renderer/media/rtc_peer_connection_handler.cc#newcode1452 content/renderer/media/rtc_peer_connection_handler.cc:1452: DCHECK(ret == (webrtc_error.type() == webrtc::RTCErrorType::NONE)); On 2017/01/17 09:32:03, dcheng ...
3 years, 11 months ago (2017-01-17 18:56:19 UTC) #16
Taylor_Brandstetter
dmazzoni@chromium.org: Please review changes in test_runner/
3 years, 11 months ago (2017-01-17 18:57:27 UTC) #19
dcheng
https://codereview.chromium.org/2631433002/diff/100001/content/renderer/media/rtc_peer_connection_handler.cc File content/renderer/media/rtc_peer_connection_handler.cc (right): https://codereview.chromium.org/2631433002/diff/100001/content/renderer/media/rtc_peer_connection_handler.cc#newcode1454 content/renderer/media/rtc_peer_connection_handler.cc:1454: return blink_error.type(); On 2017/01/17 18:56:19, Taylor_Brandstetter wrote: > On ...
3 years, 11 months ago (2017-01-17 23:32:59 UTC) #20
Taylor_Brandstetter
On 2017/01/17 23:32:59, dcheng wrote: > https://codereview.chromium.org/2631433002/diff/100001/content/renderer/media/rtc_peer_connection_handler.cc > File content/renderer/media/rtc_peer_connection_handler.cc (right): > > https://codereview.chromium.org/2631433002/diff/100001/content/renderer/media/rtc_peer_connection_handler.cc#newcode1454 > ...
3 years, 11 months ago (2017-01-17 23:43:09 UTC) #21
dcheng
On 2017/01/17 23:43:09, Taylor_Brandstetter wrote: > On 2017/01/17 23:32:59, dcheng wrote: > > > https://codereview.chromium.org/2631433002/diff/100001/content/renderer/media/rtc_peer_connection_handler.cc ...
3 years, 11 months ago (2017-01-18 00:28:45 UTC) #22
dmazzoni
test_runner lgtm
3 years, 11 months ago (2017-01-18 16:25:21 UTC) #23
Guido Urdaneta
WebKit/Source/modules/peerconnection lgtm
3 years, 11 months ago (2017-01-18 16:50:10 UTC) #24
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/2631433002/120001
3 years, 10 months ago (2017-01-25 19:46:31 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/376068)
3 years, 10 months ago (2017-01-25 20:54:33 UTC) #29
Taylor_Brandstetter
foolip: Can you please review LayoutTests changes? It's just a couple things going from "FAIL" ...
3 years, 10 months ago (2017-01-25 23:12:38 UTC) #31
foolip
LayoutTests lgtm, also checked IDL and asked for V8RTCPeerConnection_UpdateIce_Method cleanup. https://codereview.chromium.org/2631433002/diff/180001/third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.idl File third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.idl (left): https://codereview.chromium.org/2631433002/diff/180001/third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.idl#oldcode126 ...
3 years, 10 months ago (2017-01-26 04:57:07 UTC) #33
Taylor_Brandstetter
https://codereview.chromium.org/2631433002/diff/180001/third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.idl File third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.idl (left): https://codereview.chromium.org/2631433002/diff/180001/third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.idl#oldcode126 third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.idl:126: [Measure, CallWith=ExecutionContext, RaisesException] void updateIce(optional RTCConfiguration configuration, optional Dictionary ...
3 years, 10 months ago (2017-01-26 18:23:15 UTC) #34
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/2631433002/200001
3 years, 10 months ago (2017-01-26 18:24:01 UTC) #37
commit-bot: I haz the power
Try jobs failed on following builders: win_clang on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_clang/builds/159431)
3 years, 10 months ago (2017-01-26 19:28:03 UTC) #39
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/2631433002/190020
3 years, 10 months ago (2017-01-26 22:50:45 UTC) #42
commit-bot: I haz the power
3 years, 10 months ago (2017-01-27 01:07:38 UTC) #45
Message was sent while issue was closed.
Committed patchset #13 (id:190020) as
https://chromium.googlesource.com/chromium/src/+/9853d6c5883e860ff52b5447b17f...

Powered by Google App Engine
This is Rietveld 408576698