Chromium Code Reviews| Index: base/platform_file_posix.cc |
| diff --git a/base/platform_file_posix.cc b/base/platform_file_posix.cc |
| index d89a1b068fcd6eaf42a471072ef0b1bb919df26a..26d377b2819c9bb2f9d92a590a28521685b2f114 100644 |
| --- a/base/platform_file_posix.cc |
| +++ b/base/platform_file_posix.cc |
| @@ -160,6 +160,11 @@ PlatformFile CreatePlatformFileUnsafe(const FilePath& name, |
| return descriptor; |
| } |
| +FILE* FdopenPlatformFile(PlatformFile file, const char* mode) { |
| + base::ThreadRestrictions::AssertIOAllowed(); |
|
darin (slow to review)
2013/02/21 04:08:44
nit: Does fdopen actually do any real blocking IO?
Paweł Hajdan Jr.
2013/02/21 09:14:19
Ah, right, I removed the assert then.
|
| + return fdopen(file, mode); |
| +} |
| + |
| bool ClosePlatformFile(PlatformFile file) { |
| base::ThreadRestrictions::AssertIOAllowed(); |
| return !HANDLE_EINTR(close(file)); |