| Index: chrome/browser/renderer_host/download_throttling_resource_handler.cc
|
| ===================================================================
|
| --- chrome/browser/renderer_host/download_throttling_resource_handler.cc (revision 12330)
|
| +++ chrome/browser/renderer_host/download_throttling_resource_handler.cc (working copy)
|
| @@ -104,6 +104,13 @@
|
| if (download_handler_.get())
|
| return download_handler_->OnResponseCompleted(request_id, status,
|
| security_info);
|
| +
|
| + // For a download, if ResourceDispatcher::Read() fails,
|
| + // ResourceDispatcher::OnresponseStarted() will call
|
| + // OnResponseCompleted(), and we will end up here with an error
|
| + // status.
|
| + if (!status.is_success())
|
| + return false;
|
| NOTREACHED();
|
| return true;
|
| }
|
|
|