| Index: content/browser/download/base_file.cc
|
| diff --git a/content/browser/download/base_file.cc b/content/browser/download/base_file.cc
|
| index 7bd2b0bcabf5526705630ec445ce6b819a80228a..8fda8de6a5c48834ab579aabaceedf5c79055e9f 100644
|
| --- a/content/browser/download/base_file.cc
|
| +++ b/content/browser/download/base_file.cc
|
| @@ -203,7 +203,11 @@ void BaseFile::Finish() {
|
|
|
| if (calculate_hash_)
|
| secure_hash_->Finish(sha256_hash_, crypto::kSHA256Length);
|
| + Close();
|
| +}
|
|
|
| +void BaseFile::FinishWithError() {
|
| + DCHECK_CURRENTLY_ON(BrowserThread::FILE);
|
| Close();
|
| }
|
|
|
|
|