Remove threading restricton of IsUnifiedPlan
which exposes a const bool.
BUG=None
Change-Id: Id2096f2f4ec6b3c2d4605cfa8c7d86d4dc337528
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/384500
Reviewed-by: Tomas Gunnarsson <tommi@webrtc.org>
Commit-Queue: Tomas Gunnarsson <tommi@webrtc.org>
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#44318}
diff --git a/pc/peer_connection.h b/pc/peer_connection.h
index 466e6e7..12d351a 100644
--- a/pc/peer_connection.h
+++ b/pc/peer_connection.h
@@ -394,7 +394,6 @@
// TODO(bugs.webrtc.org/8530): Flip the default to be Unified Plan once
// sufficient time has passed.
bool IsUnifiedPlan() const override {
- RTC_DCHECK_RUN_ON(signaling_thread());
return is_unified_plan_;
}
bool ValidateBundleSettings(const SessionDescription* desc,
diff --git a/pc/sdp_offer_answer.h b/pc/sdp_offer_answer.h
index 031aec1..a401eba 100644
--- a/pc/sdp_offer_answer.h
+++ b/pc/sdp_offer_answer.h
@@ -288,7 +288,7 @@
const SessionDescription* description,
const std::map<std::string, const ContentGroup*>& bundle_groups_by_mid);
- bool IsUnifiedPlan() const RTC_RUN_ON(signaling_thread());
+ bool IsUnifiedPlan() const;
// Signals from MediaStreamObserver.
void OnAudioTrackAdded(AudioTrackInterface* track,