| Index: content/browser/download/download_job.cc
|
| diff --git a/content/browser/download/download_job.cc b/content/browser/download/download_job.cc
|
| index c527014d189feab81144c923095b97dc493e3c7a..763e8edb04ef371d2e9326d0b435637dcde445de 100644
|
| --- a/content/browser/download/download_job.cc
|
| +++ b/content/browser/download/download_job.cc
|
| @@ -51,6 +51,17 @@ bool DownloadJob::AddByteStream(std::unique_ptr<ByteStreamReader> stream_reader,
|
| return true;
|
| }
|
|
|
| +void DownloadJob::SetPotentialFileLength(int64_t length) {
|
| + DCHECK_CURRENTLY_ON(BrowserThread::UI);
|
| + DownloadFile* download_file = download_item_->download_file_.get();
|
| + if (download_file) {
|
| + BrowserThread::PostTask(
|
| + BrowserThread::FILE, FROM_HERE,
|
| + base::Bind(&DownloadFile::SetPotentialFileLength,
|
| + base::Unretained(download_file), length));
|
| + }
|
| +}
|
| +
|
| bool DownloadJob::UsesParallelRequests() const {
|
| return false;
|
| }
|
|
|