| Index: content/browser/download/base_file.cc
|
| diff --git a/content/browser/download/base_file.cc b/content/browser/download/base_file.cc
|
| index cc7871fcedde3d1a34ba8488651b4e4f96a7b20a..1549ceb2986f9d2800de4ace221eb02cbccfe077 100644
|
| --- a/content/browser/download/base_file.cc
|
| +++ b/content/browser/download/base_file.cc
|
| @@ -417,7 +417,8 @@ void BaseFile::Cancel() {
|
| if (!full_path_.empty()) {
|
| bound_net_log_.AddEvent(net::NetLog::TYPE_DOWNLOAD_FILE_DELETED);
|
|
|
| - file_util::Delete(full_path_, false);
|
| + bool deleted = file_util::Delete(full_path_, false);
|
| + DCHECK(deleted);
|
| }
|
| }
|
|
|
| @@ -529,7 +530,6 @@ void BaseFile::Close() {
|
| // theres not much we can do. But we might in the future.
|
| file_stream_->FlushSync();
|
| #endif
|
| - file_stream_->CloseSync();
|
| ClearStream(net::OK);
|
| }
|
| }
|
|
|