| Index: base/platform_file_posix.cc
|
| diff --git a/base/platform_file_posix.cc b/base/platform_file_posix.cc
|
| index 38989c6bf41cddcf5b961b31cbcbfc6782df5d9d..00249aa11d951da6aa484fac0ae26218319fc19c 100644
|
| --- a/base/platform_file_posix.cc
|
| +++ b/base/platform_file_posix.cc
|
| @@ -65,7 +65,7 @@ PlatformFile CreatePlatformFile(const FilePath& name, int flags,
|
| open_flags |= O_TRUNC;
|
| }
|
|
|
| - DCHECK(O_RDONLY == 0);
|
| + COMPILE_ASSERT(O_RDONLY == 0, O_RDONLY_must_equal_zero);
|
|
|
| int descriptor = open(name.value().c_str(), open_flags, S_IRUSR | S_IWUSR);
|
|
|
|
|