commit 1ad806ce2fc2f0c275ab121e288c4acd0754f5d7
parent b6b2485efe6ce2132c4d5cdd63bf108d23e679a0
Author: Dan Baker <dbaker@mozilla.com>
Date: Mon, 1 Dec 2025 19:16:03 -0700
Bug 2000941 - Vendor libwebrtc from a7b98c3b65
Upstream commit: https://webrtc.googlesource.com/src/+/a7b98c3b65d2f7121592f600000d6dc722a297be
Remove deprecated JsepSessionDescription() constructor
Bug: webrtc:442220720
Change-Id: I391437b67acb383d58aa9be0af12d46cfce03bfd
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/408904
Commit-Queue: Tomas Gunnarsson <tommi@webrtc.org>
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#45618}
Diffstat:
3 files changed, 2 insertions(+), 16 deletions(-)
diff --git a/third_party/libwebrtc/README.mozilla.last-vendor b/third_party/libwebrtc/README.mozilla.last-vendor
@@ -1,4 +1,4 @@
# ./mach python dom/media/webrtc/third_party_build/vendor-libwebrtc.py --from-local /Users/danielbaker/elm/.moz-fast-forward/moz-libwebrtc --commit mozpatches libwebrtc
-libwebrtc updated from /Users/danielbaker/elm/.moz-fast-forward/moz-libwebrtc commit mozpatches on 2025-12-02T02:13:18.601267+00:00.
+libwebrtc updated from /Users/danielbaker/elm/.moz-fast-forward/moz-libwebrtc commit mozpatches on 2025-12-02T02:15:44.301027+00:00.
# base of lastest vendoring
-81bc5413a3
+a7b98c3b65
diff --git a/third_party/libwebrtc/api/jsep_session_description.h b/third_party/libwebrtc/api/jsep_session_description.h
@@ -36,9 +36,6 @@ class JsepSessionDescription final : public SessionDescriptionInterface {
"JsepSessionDescription needs to be initialized with a valid description "
"object")]]
explicit JsepSessionDescription(SdpType type);
- [[deprecated(
- "Use the CreateSessionDescription() method(s) to create an instance.")]]
- explicit JsepSessionDescription(const std::string& type);
JsepSessionDescription(SdpType type,
std::unique_ptr<SessionDescription> description,
absl::string_view session_id,
diff --git a/third_party/libwebrtc/pc/jsep_session_description.cc b/third_party/libwebrtc/pc/jsep_session_description.cc
@@ -44,14 +44,6 @@ namespace {
constexpr char kDummyAddress[] = "0.0.0.0";
constexpr int kDummyPort = 9;
-// Remove this method when the deprecated constructor that calls it has been
-// removed.
-SdpType SdpTypeFromStringOrDie(const std::string& type) {
- auto sdp_type = SdpTypeFromString(type);
- RTC_CHECK(sdp_type.has_value());
- return sdp_type.value();
-}
-
// Update the connection address for the MediaContentDescription based on the
// candidates.
void UpdateConnectionAddress(
@@ -160,9 +152,6 @@ std::unique_ptr<SessionDescriptionInterface> CreateRollbackSessionDescription(
JsepSessionDescription::JsepSessionDescription(SdpType type) : type_(type) {}
-JsepSessionDescription::JsepSessionDescription(const std::string& type)
- : JsepSessionDescription(SdpTypeFromStringOrDie(type)) {}
-
JsepSessionDescription::JsepSessionDescription(
SdpType type,
std::unique_ptr<SessionDescription> description,