Fix remove |UrlDownloadHandler| before added.
This will happens when a download was created by |CreateDownloadHandlerForNavigation| and we will call |OnUrlDownloadStarted| before |OnUrlDownloadHandlerCreated| due to we had got the response. Then there is a chance that the |cancel_request_callback| will called before |OnUrlDownloadHandlerCreated|. we will fail to cancel this request since we haven't add it into the |url_download_handlers_|. Bug:None Change-Id: Id6a0018a6ac06909ca7c8462a5a90555b61a4873 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2111515 Commit-Queue: Min Qin <qinmin@chromium.org> Reviewed-by:Min Qin <qinmin@chromium.org> Cr-Commit-Position: refs/heads/master@{#752323}
Showing
Please register or sign in to comment