summaryrefslogtreecommitdiffstats
path: root/chrome/browser/renderer_host
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-07 17:56:42 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-07 17:56:42 +0000
commit41c53b6a7c519f738cc2653553978c89f558fe4c (patch)
treec7c5410686c2ecde4a39cd96c012e295c130307f /chrome/browser/renderer_host
parentd868e32cd6c702e335632008653a2c1b01cd13ac (diff)
downloadchromium_src-41c53b6a7c519f738cc2653553978c89f558fe4c.zip
chromium_src-41c53b6a7c519f738cc2653553978c89f558fe4c.tar.gz
chromium_src-41c53b6a7c519f738cc2653553978c89f558fe4c.tar.bz2
Revert 58374 - Fix a race condition after my latest download cleanup change.
We need to pause the download request until the on-disk file is actually created. Otherwise all data received from network would be discarded. BUG=54131 TEST=see bug Review URL: http://codereview.chromium.org/3333007 TBR=phajdan.jr@chromium.org Review URL: http://codereview.chromium.org/3307015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58717 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/renderer_host')
-rw-r--r--chrome/browser/renderer_host/download_resource_handler.cc5
1 files changed, 0 insertions, 5 deletions
diff --git a/chrome/browser/renderer_host/download_resource_handler.cc b/chrome/browser/renderer_host/download_resource_handler.cc
index 3e5f3c0..b1cf07e 100644
--- a/chrome/browser/renderer_host/download_resource_handler.cc
+++ b/chrome/browser/renderer_host/download_resource_handler.cc
@@ -95,11 +95,6 @@ bool DownloadResourceHandler::OnResponseStarted(int request_id,
ChromeThread::UI, FROM_HERE,
NewRunnableMethod(
download_file_manager_, &DownloadFileManager::StartDownload, info));
-
- // We can't start saving the data before we create the file on disk.
- // The request will be un-paused in DownloadFileManager::CreateDownloadFile.
- rdh_->PauseRequest(global_id_.child_id, global_id_.request_id, true);
-
return true;
}