Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(221)

Unified Diff: net/disk_cache/simple/simple_index_file_win.cc

Issue 2774923002: Try to speed up SimpleCache index re-sync on Windows. (Closed)
Patch Set: git cl try Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/disk_cache/simple/simple_index_file_posix.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/simple/simple_index_file_win.cc
diff --git a/net/disk_cache/simple/simple_index_file_win.cc b/net/disk_cache/simple/simple_index_file_win.cc
index 051d12deaf7208c173b0fcaac0849c8f646e402f..213dbc693619bccb6acf77a649710ef5205815a1 100644
--- a/net/disk_cache/simple/simple_index_file_win.cc
+++ b/net/disk_cache/simple/simple_index_file_win.cc
@@ -25,7 +25,9 @@ bool SimpleIndexFile::TraverseCacheDirectory(
file_path = enumerator.Next()) {
if (file_path == current_directory || file_path == parent_directory)
continue;
- entry_file_callback.Run(file_path);
+ base::FileEnumerator::FileInfo info = enumerator.GetInfo();
+ entry_file_callback.Run(file_path, base::Time(), info.GetLastModifiedTime(),
+ info.GetSize());
}
return true;
}
« no previous file with comments | « net/disk_cache/simple/simple_index_file_posix.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698