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: Iec8091ada5862cb6aa48d45b2a426c05bda798f9 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/264826 Reviewed-by: Harald Alvestrand <hta@webrtc.org> Owners-Override: Daniel.L (Byoungchan) Lee <daniel.l@hpcnt.com> Commit-Queue: Niels Moller <nisse@webrtc.org> Reviewed-by: Christoffer Jansson <jansson@webrtc.org> Cr-Commit-Position: refs/heads/main@{#37138}