Fix potential use-after-free in NetworkChangeNotifierWin shutdown
Make NetworkChangeNotifierWin::RecomputeCurrentConnectionType() static to avoid referencing NetworkChangeNotifierWin vtable pointer when it might be dead. This can happen when RecomputeCurrentConnectionType() is posted to |blocking_task_runner_| and NetworkChangeNotifierWin is destroyed. Bug: 995781 Change-Id: I56805777fb77a5b37829962e41d4d0b0e09eb468 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1789666 Commit-Queue: Eric Orth <ericorth@chromium.org> Auto-Submit: Paul Jensen <pauljensen@chromium.org> Reviewed-by:Eric Orth <ericorth@chromium.org> Cr-Commit-Position: refs/heads/master@{#695799}
Showing
Please register or sign in to comment