| Index: net/disk_cache/simple/simple_index_file_posix.cc
|
| diff --git a/net/disk_cache/simple/simple_index_file_posix.cc b/net/disk_cache/simple/simple_index_file_posix.cc
|
| index e0dd3dd126a98801b5711eb892d8ca79bd9b3bfc..9fa387e030cb263c5be2e78b54b392bbbd45c1a1 100644
|
| --- a/net/disk_cache/simple/simple_index_file_posix.cc
|
| +++ b/net/disk_cache/simple/simple_index_file_posix.cc
|
| @@ -12,6 +12,7 @@
|
| #include <memory>
|
| #include <string>
|
|
|
| +#include "base/files/file_util.h"
|
| #include "base/logging.h"
|
|
|
| namespace disk_cache {
|
| @@ -43,7 +44,14 @@ bool SimpleIndexFile::TraverseCacheDirectory(
|
| continue;
|
| const base::FilePath file_path = cache_path.Append(
|
| base::FilePath(file_name));
|
| - entry_file_callback.Run(file_path);
|
| + base::File::Info file_info;
|
| + if (!base::GetFileInfo(file_path, &file_info)) {
|
| + LOG(ERROR) << "Could not get file info for " << file_path.value();
|
| + continue;
|
| + }
|
| +
|
| + entry_file_callback.Run(file_path, file_info.last_accessed,
|
| + file_info.last_modified, file_info.size);
|
| }
|
| PLOG(ERROR) << "readdir_r " << cache_path.value();
|
| return false;
|
|
|