Index: base/files/file.cc |
diff --git a/base/files/file.cc b/base/files/file.cc |
index 478f9028443437c4a14480f11fe864132f02252b..cd167b16074ec2ff98dbaa4a99a6ae1412c06c30 100644 |
--- a/base/files/file.cc |
+++ b/base/files/file.cc |
@@ -40,6 +40,9 @@ File::File(PlatformFile platform_file) |
error_details_(FILE_OK), |
created_(false), |
async_(false) { |
+#if defined(OS_POSIX) |
+ DCHECK_GE(platform_file, -1); |
+#endif |
} |
File::File(RValue other) |
@@ -50,7 +53,6 @@ File::File(RValue other) |
} |
File::~File() { |
- Close(); |
} |
File& File::operator=(RValue other) { |