[CellularSetup] Fix UAF in chrome://cellular-setup.
This CL fixes UAF in CellularSetupImpl class. This was caused because of callbacks bound with Unretained reference. Fixed this using WeakPtrFactory so that callbacks will not be referenced after CellularSetupImpl is destroyed. Fixes: 1114066 Change-Id: I6d9e2b7676e21f28861cf5ba78308e3400a4fe6d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2347923Reviewed-by:Kyle Horimoto <khorimoto@chromium.org> Commit-Queue: Azeem Arshad <azeemarshad@chromium.org> Cr-Commit-Position: refs/heads/master@{#796649}
Showing
Please register or sign in to comment