Post a task when invoking CheckDownloadCallback
Currently this could cause an reentrance issues. Destroying a download will immediately invoke the callback, and the callback will immediately getting the destroyed DownloadItem. Posting a task should solve the issue. BUG=1152451 Change-Id: I8e6f5d64edad2593fa340ab876ebfd858b2a4699 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2561341 Commit-Queue: Min Qin <qinmin@chromium.org> Reviewed-by:Varun Khaneja <vakh@chromium.org> Cr-Commit-Position: refs/heads/master@{#833635}
Showing
Please register or sign in to comment