This is a reland of commit 7d4634cef76a1ac244d4b83faaf4c617bf236b71 Original change's description: > Don't create PacketSocketFactory inside BasicPortAllocatorSession > > This extends AlwaysValidPointer to avoid creating a unique_ptr inside it. > > Bug: webrtc:13145 > Change-Id: I73a4f18d0a7037b57f575b04b134e4f7eadceb79 > Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/263240 > Reviewed-by: Jonas Oreland <jonaso@webrtc.org> > Commit-Queue: Daniel.L (Byoungchan) Lee <daniel.l@hpcnt.com> > Reviewed-by: Harald Alvestrand <hta@webrtc.org> > Cr-Commit-Position: refs/heads/main@{#37048} Bug: webrtc:13145 Change-Id: I7d64c25b2942b392a1c35ff2fe1edc83d7b03746 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/264503 Reviewed-by: Harald Alvestrand <hta@webrtc.org> Reviewed-by: Christoffer Jansson <jansson@webrtc.org> Commit-Queue: Christoffer Jansson <jansson@webrtc.org> Reviewed-by: Daniel.L (Byoungchan) Lee <daniel.l@hpcnt.com> Cr-Commit-Position: refs/heads/main@{#37088}