feat(libwebrtc): implement webrtc::field_trial::InitFieldTrialsFromString #15285
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/15285"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by zzokm on 2026-11-02T22:47:29Z.
What
Implements
webrtc::field_trial::InitFieldTrialsFromString(const char*)in libwebrtc, which previously threw throughNotImplemented_nid_no_patchand was declared with(void).The function is adapted from WebRTC's
system_wrappers/source/field_trial.cc(M127, M134), headed by the WebRTC copyright notice and BSD licence. As upstream, it assigns the passed pointer directly to the global trial string without copying. An internalwebrtc::field_trial::GetFieldTrialString()getter is exposed inFieldTrial.hppfor internal consumers and testing. The unknown exports inventory drops from 352 to 351.Tested
Windows 11 (x86_64), GCC 13.2.0, syntax-checked and standalone guest unit test executed.
guest_webrtc_field_trialtest: verifies that the trial string pointer initially starts null, is updated when set, and clears back to null when passed a nullptr.tools/check_conventions.py --base upstream/mainpasses with zero warnings or errors.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)