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

Unified Diff: base/files/file_win.cc

Issue 1023103002: Let ImportantFileWriter Use fdatasync (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
Index: base/files/file_win.cc
diff --git a/base/files/file_win.cc b/base/files/file_win.cc
index 9f3033c845bb5a8e1469765c9b01c9b330167c7e..e61a7a2fe1cf6c7e71e85f5b0c8e58c026fbda75 100644
--- a/base/files/file_win.cc
+++ b/base/files/file_win.cc
@@ -262,6 +262,10 @@ bool File::Flush() {
return ::FlushFileBuffers(file_.Get()) != FALSE;
}
+bool File::FlushData() {
+ return Flush();
+}
+
bool File::SetTimes(Time last_access_time, Time last_modified_time) {
base::ThreadRestrictions::AssertIOAllowed();
DCHECK(IsValid());

Powered by Google App Engine
This is Rietveld 408576698