[WebRTC] Preparation CL for making Plan B throw an exception. #29312
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This CL adds the code that makes constructing an RTCPeerConnection with
{sdpSemantics:"plan-b"} throw an exception, however it also adds a kill
switch for this code path that is enabled by default (meaning we will
not throw an exception).
The kill switch will be made DISABLED_BY_DEFAULT in a follow-up CL so
that in case we have to revert "making Plan B throw" we don't have to
revert evertything this CL is adding, including a web platform test and
a use counter that is likely to cause merge conflicts if reverted.
Bug: chromium:857004
Change-Id: I8452b6d883ec71ba77cc59275b038ae2cac41c73
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2949808
Reviewed-by: Harald Alvestrand <hta@chromium.org>
Reviewed-by: Guido Urdaneta <guidou@chromium.org>
Reviewed-by: Philip Jägenstedt <foolip@chromium.org>
Commit-Queue: Henrik Boström <hbos@chromium.org>
Cr-Commit-Position: refs/heads/master@{#891596}