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

Unified Diff: base/files/file.cc

Issue 1148383003: Only support seeking file streams from the beginning of the file. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: One more instance where files need to be tagged as async. Created 5 years, 7 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.cc
diff --git a/base/files/file.cc b/base/files/file.cc
index 58f80c52322ec38125e1acbe3fda1120f64aa912..819e8538c6c77abcaf654341c5aad98d7cca5891 100644
--- a/base/files/file.cc
+++ b/base/files/file.cc
@@ -44,6 +44,16 @@ File::File(PlatformFile platform_file)
#endif
}
+File::File(PlatformFile platform_file, bool async)
+ : file_(platform_file),
+ error_details_(FILE_OK),
+ created_(false),
+ async_(async) {
+#if defined(OS_POSIX)
+ DCHECK_GE(platform_file, -1);
+#endif
+}
+
File::File(Error error_details)
: error_details_(error_details),
created_(false),

Powered by Google App Engine
This is Rietveld 408576698