Chromium Code Reviews| Index: base/files/file_util_posix.cc |
| diff --git a/base/files/file_util_posix.cc b/base/files/file_util_posix.cc |
| index b8c0eeb94c0088d07aa41f7e4e7bf593ea72094d..375dae980615ba3794d271e6a28cbbfe1611c5a2 100644 |
| --- a/base/files/file_util_posix.cc |
| +++ b/base/files/file_util_posix.cc |
| @@ -28,8 +28,6 @@ |
| #include <glib.h> // for g_get_home_dir() |
| #endif |
| -#include <fstream> |
| - |
| #include "base/basictypes.h" |
| #include "base/files/file_enumerator.h" |
| #include "base/files/file_path.h" |
| @@ -428,7 +426,7 @@ bool GetPosixFilePermissions(const FilePath& path, int* mode) { |
| bool SetPosixFilePermissions(const FilePath& path, |
| int mode) { |
| ThreadRestrictions::AssertIOAllowed(); |
| - DCHECK((mode & ~FILE_PERMISSION_MASK) == 0); |
| + DCHECK_EQ(0, mode & ~FILE_PERMISSION_MASK); |
|
rvargas (doing something else)
2014/11/11 18:47:24
nit: swap the order (CHECKs should follow the norm
|
| // Calls stat() so that we can preserve the higher bits like S_ISGID. |
| stat_wrapper_t stat_buf; |