Skip to content

Commit

Permalink
Bug 1843217 - remove deprecated use of webrtc::WebRtcKeyValueConfig i…
Browse files Browse the repository at this point in the history
…n favor of webrtc::FieldTrialsView. r=dbaker

WebRtcKeyValueConfig was just a typdef for FieldTrialsView, so they are
functionally equivalent.

Differential Revision: https://phabricator.services.mozilla.com/D183458
  • Loading branch information
mfromanmoz committed Jul 13, 2023
1 parent 45931e1 commit ab39b57
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions dom/media/webrtc/jsapi/PeerConnectionCtx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ SharedWebrtcState::SharedWebrtcState(
RefPtr<AbstractThread> aCallWorkerThread,
webrtc::AudioState::Config&& aAudioStateConfig,
RefPtr<webrtc::AudioDecoderFactory> aAudioDecoderFactory,
UniquePtr<webrtc::WebRtcKeyValueConfig> aTrials)
UniquePtr<webrtc::FieldTrialsView> aTrials)
: mCallWorkerThread(std::move(aCallWorkerThread)),
mAudioStateConfig(std::move(aAudioStateConfig)),
mAudioDecoderFactory(std::move(aAudioDecoderFactory)),
Expand Down Expand Up @@ -486,7 +486,7 @@ void PeerConnectionCtx::AddPeerConnection(const std::string& aKey,
MediaThreadType::WEBRTC_CALL_THREAD)
.release());

UniquePtr<webrtc::WebRtcKeyValueConfig> trials =
UniquePtr<webrtc::FieldTrialsView> trials =
WrapUnique(new NoTrialsConfig());

mSharedWebrtcState = MakeAndAddRef<SharedWebrtcState>(
Expand Down
2 changes: 1 addition & 1 deletion media/webrtc/signaling/gtest/MockCall.h
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ class MockCall : public webrtc::Call {
width, height, *mVideoSendEncoderConfig);
}

virtual const webrtc::WebRtcKeyValueConfig& trials() const override {
virtual const webrtc::FieldTrialsView& trials() const override {
return mUnusedConfig;
}

Expand Down

0 comments on commit ab39b57

Please sign in to comment.