diff options
author | cmumford <cmumford@chromium.org> | 2014-11-11 13:28:29 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-11-11 21:28:42 +0000 |
commit | d3ca0b0220ec1b4756e640625e0332847a547591 (patch) | |
tree | 85629cc913bdc804d26a2fd9e317d90fd47c30d9 | |
parent | da64309db46f4ade5e2e22b1d01f14f251b31b4e (diff) | |
download | chromium_src-d3ca0b0220ec1b4756e640625e0332847a547591.zip chromium_src-d3ca0b0220ec1b4756e640625e0332847a547591.tar.gz chromium_src-d3ca0b0220ec1b4756e640625e0332847a547591.tar.bz2 |
base/files: Fixed two minor lint warnings.
Two changes identified by "git cl lint":
1. Removed unused <fstream>.
2. DCHECK -> DCHECK_EQ.
Review URL: https://codereview.chromium.org/707603003
Cr-Commit-Position: refs/heads/master@{#303723}
-rw-r--r-- | base/files/file_util_posix.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/base/files/file_util_posix.cc b/base/files/file_util_posix.cc index b8c0eeb..0bf41a5 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(mode & ~FILE_PERMISSION_MASK, 0); // Calls stat() so that we can preserve the higher bits like S_ISGID. stat_wrapper_t stat_buf; |