Use WeakPtr in WebRtcEventLogUploaderImpl
This takes care of the case where `url_loader_` posts the callback, then Cancel() is called before the callback's task was executed, deleting the object. Following this CL, since now a WeakPtr is used, that task will just be nullified. Bug: 1092071 Change-Id: If93c9f9ebef272a648d5eaf9578c5f060de48263 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2260614 Commit-Queue: Elad Alon <eladalon@chromium.org> Reviewed-by:Guido Urdaneta <guidou@chromium.org> Cr-Commit-Position: refs/heads/master@{#781933}
Showing
Please register or sign in to comment