This reverts commit a8be79ce27f10a698bdb46e490c2bbcbb2300e52. Reason for revert: Downstream projects were not fixed and I was to eager to reland this, sorry about this. Original change's description: > Reland "Don't create PacketSocketFactory inside BasicPortAllocatorSession" > > 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} Bug: webrtc:13145 Change-Id: Ie7990bae9a7c864ffaa4eb5b637618caad509633 No-Presubmit: true No-Tree-Checks: true No-Try: true Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/264823 Bot-Commit: rubber-stamper@appspot.gserviceaccount.com <rubber-stamper@appspot.gserviceaccount.com> Commit-Queue: Christoffer Jansson <jansson@webrtc.org> Owners-Override: Christoffer Jansson <jansson@webrtc.org> Cr-Commit-Position: refs/heads/main@{#37089}