| Index: content/browser/download/base_file.cc
|
| diff --git a/content/browser/download/base_file.cc b/content/browser/download/base_file.cc
|
| index 87d60f85276b4727d2cc658a085e2399e46f40a0..0c00a84af84abd6874df702ecdc0845a8627ba5e 100644
|
| --- a/content/browser/download/base_file.cc
|
| +++ b/content/browser/download/base_file.cc
|
| @@ -36,6 +36,8 @@ BaseFile::BaseFile(const FilePath& full_path,
|
| detached_(false) {
|
| DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE));
|
| memset(sha256_hash_, 0, sizeof(sha256_hash_));
|
| + if (file_stream_.get())
|
| + file_stream_->EnableErrorStatistics();
|
| }
|
|
|
| BaseFile::~BaseFile() {
|
| @@ -215,6 +217,7 @@ bool BaseFile::Open() {
|
| // Create a new file stream if it is not provided.
|
| if (!file_stream_.get()) {
|
| CreateFileStream();
|
| + file_stream_->EnableErrorStatistics();
|
| if (file_stream_->Open(full_path_,
|
| base::PLATFORM_FILE_OPEN_ALWAYS |
|
| base::PLATFORM_FILE_WRITE) != net::OK) {
|
|
|