DescriptionPrevent data read errors from crashing the browser.
In ResourceDispatcherHost::OnResponseStarted(), if Read() causes an error, it calls OnResponseCompleted(). For a download, this hits the NOTREACHED() in DownloadThrottlingResourceHandler::OnResponseCompleted().
This patch checks for the error status, and returns false, which causes the download to finish, which saves an empty file of size 0.
BUG=8170
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=12410
Patch Set 1 #
Total comments: 1
Patch Set 2 : '' #Messages
Total messages: 2 (0 generated)
|