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

Unified Diff: base/files/file_win.cc

Issue 1424943006: Support Windows FILE_FLAG_SEQUENTIAL_SCAN in base::File. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 | « base/files/file.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/files/file_win.cc
diff --git a/base/files/file_win.cc b/base/files/file_win.cc
index ce38d0b0e2af276a080105374d1d0fa5fc10c282..2d75ca2f57be98205402365e8c563110747e2f23 100644
--- a/base/files/file_win.cc
+++ b/base/files/file_win.cc
@@ -375,6 +375,8 @@ void File::DoInitialize(const FilePath& path, uint32 flags) {
create_flags |= FILE_FLAG_DELETE_ON_CLOSE;
if (flags & FLAG_BACKUP_SEMANTICS)
create_flags |= FILE_FLAG_BACKUP_SEMANTICS;
+ if (flags & FLAG_SEQUENTIAL_SCAN)
+ create_flags |= FILE_FLAG_SEQUENTIAL_SCAN;
file_.Set(CreateFile(path.value().c_str(), access, sharing, NULL,
disposition, create_flags, NULL));
« no previous file with comments | « base/files/file.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698