Fix crash in web request proxies connection error handler
When WebRequestAPI is destroyed, it posts a task to the IO thread to shutdown the proxies. This crash can happen when the WebRequestAPI is destroyed, and a connection error happens on one of the proxies (which accesses data destroyed by the profile) before the ProxySet can be fully shutdown on the IO thread. This change adds an atomic flag to check to make sure the WebRequestAPI has not been destroyed before running error handlers. Bug: 878366 Change-Id: I2f7b98c1d6df7c53a5917444ac996e9b5ef4e794 Reviewed-on: https://chromium-review.googlesource.com/1196031Reviewed-by:Ken Rockot <rockot@chromium.org> Commit-Queue: Clark DuVall <cduvall@chromium.org> Cr-Commit-Position: refs/heads/master@{#587749}
Showing
Please register or sign in to comment