Index: base/files/file_posix.cc |
diff --git a/base/files/file_posix.cc b/base/files/file_posix.cc |
index a37de53280378c13aae9974ed9acccfa4bf259c0..a62ad98bd75974ad6f3f4548cf6648c7e8bf0702 100644 |
--- a/base/files/file_posix.cc |
+++ b/base/files/file_posix.cc |
@@ -217,10 +217,10 @@ PlatformFile File::TakePlatformFile() { |
} |
void File::Close() { |
- base::ThreadRestrictions::AssertIOAllowed(); |
if (!IsValid()) |
return; |
+ base::ThreadRestrictions::AssertIOAllowed(); |
if (!IGNORE_EINTR(close(file_))) |
file_ = kInvalidPlatformFileValue; |
} |