Remove CheckClientDownloadRequest from DownloadItem observer list on destruction
DownloadProtectionService::SetEnabled(false) could destroy all CheckClientDownloadRequests before they are finished. If that happens, we need to remove the latter from all the DownloadItems' observer list they are observing. Otherwise, DownloadItemImpl dtor could hit NPE due to these deleted observers. BUG=906004 Change-Id: Ic4971c0e95087315433ca30ad5a56684abc112e3 Reviewed-on: https://chromium-review.googlesource.com/c/1359470Reviewed-by:Varun Khaneja <vakh@chromium.org> Commit-Queue: Min Qin <qinmin@chromium.org> Cr-Commit-Position: refs/heads/master@{#613754}
Showing
Please register or sign in to comment