Index: base/files/file_enumerator.cc |
diff --git a/base/files/file_enumerator.cc b/base/files/file_enumerator.cc |
index 974998036d3aeb3c766a16012eff9238001cf644..dfa277a2d1c7efe985fb931d8d5d5248e4822575 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) const { |
+ return (file_type_ & |
+ (is_dir ? FileEnumerator::DIRECTORIES : FileEnumerator::FILES)) != 0; |
+} |
+ |
} // namespace base |