Chromium Code Reviews| Index: base/files/file_enumerator.cc |
| diff --git a/base/files/file_enumerator.cc b/base/files/file_enumerator.cc |
| index 974998036d3aeb3c766a16012eff9238001cf644..3c472cdc021fc0a1722b8b059656874611dd12d6 100644 |
| --- a/base/files/file_enumerator.cc |
| +++ b/base/files/file_enumerator.cc |
| @@ -18,4 +18,9 @@ bool FileEnumerator::ShouldSkip(const FilePath& path) { |
| !(INCLUDE_DOT_DOT & file_type_)); |
| } |
| +bool FileEnumerator::IsTypeMatched(bool is_dir) { |
| + return (is_dir && (file_type_ & FileEnumerator::DIRECTORIES)) || |
|
Mark Mentovai
2017/05/19 17:16:11
file_type_ & (is_dir ? FileEnumerator::DIRECTORIES
ivafanas
2017/05/22 04:42:28
Done.
It was needed to add comparison with zero.
|
| + (!is_dir && (file_type_ & FileEnumerator::FILES)); |
| +} |
| + |
| } // namespace base |