diff options
author | jcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-07 01:31:57 +0000 |
---|---|---|
committer | jcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-07 01:31:57 +0000 |
commit | c5afdbde93d1daf443c1cc8b3ecb5cae51f55f60 (patch) | |
tree | 80298e0bd82a13f8d70020bc7f0edf37a0832b8b /chrome/browser/renderer_host/buffered_resource_handler.cc | |
parent | 8f56bc760b7bb6cfb62a86c2120842128f5c2ade (diff) | |
download | chromium_src-c5afdbde93d1daf443c1cc8b3ecb5cae51f55f60.zip chromium_src-c5afdbde93d1daf443c1cc8b3ecb5cae51f55f60.tar.gz chromium_src-c5afdbde93d1daf443c1cc8b3ecb5cae51f55f60.tar.bz2 |
Reverting 11179.
Reverting CL as plugin UI tests fail on Vista
Review URL: http://codereview.chromium.org/40260
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11187 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/renderer_host/buffered_resource_handler.cc')
-rw-r--r-- | chrome/browser/renderer_host/buffered_resource_handler.cc | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/chrome/browser/renderer_host/buffered_resource_handler.cc b/chrome/browser/renderer_host/buffered_resource_handler.cc index c49666c7..e1144c2 100644 --- a/chrome/browser/renderer_host/buffered_resource_handler.cc +++ b/chrome/browser/renderer_host/buffered_resource_handler.cc @@ -72,10 +72,8 @@ bool BufferedResourceHandler::OnResponseStarted(int request_id, bool BufferedResourceHandler::OnResponseCompleted( - int request_id, - const URLRequestStatus& status, - const std::string& security_info) { - return real_handler_->OnResponseCompleted(request_id, status, security_info); + int request_id, const URLRequestStatus& status) { + return real_handler_->OnResponseCompleted(request_id, status); } // We'll let the original event handler provide a buffer, and reuse it for @@ -244,7 +242,7 @@ bool BufferedResourceHandler::CompleteResponseStarted(int request_id, // own error page instead of triggering a download. // TODO(abarth): We should abstract the response_code test, but this kind // of check is scattered throughout our codebase. - request_->SimulateError(net::ERR_FILE_NOT_FOUND); + request_->CancelWithError(net::ERR_FILE_NOT_FOUND); return false; } @@ -272,8 +270,7 @@ bool BufferedResourceHandler::CompleteResponseStarted(int request_id, // handled by an external source (the browser's DownloadManager). real_handler_->OnResponseStarted(info->request_id, response_); URLRequestStatus status(URLRequestStatus::HANDLED_EXTERNALLY, 0); - real_handler_->OnResponseCompleted(info->request_id, status, - std::string()); + real_handler_->OnResponseCompleted(info->request_id, status); // Ditch the old async handler that talks to the renderer for the new // download handler that talks to the DownloadManager. |