summaryrefslogtreecommitdiffstats
path: root/base/file_util.h
diff options
context:
space:
mode:
authorharuki@chromium.org <haruki@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-12 01:57:23 +0000
committerharuki@chromium.org <haruki@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-12 01:57:23 +0000
commit84c3f1642184211bcf188e8f9ed763603af57511 (patch)
tree7063b340791fe3725a6b2b68047605bde1770479 /base/file_util.h
parentadb3145c1640318d837ce43cb6388500218d452e (diff)
downloadchromium_src-84c3f1642184211bcf188e8f9ed763603af57511.zip
chromium_src-84c3f1642184211bcf188e8f9ed763603af57511.tar.gz
chromium_src-84c3f1642184211bcf188e8f9ed763603af57511.tar.bz2
Change the type of file_type parameter to int, as the parameter actually takes or-ed bitmasks,
to remove static_cast<> in the callers. BUG=139130 TEST=try bots Review URL: https://chromiumcodereview.appspot.com/10855002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151192 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/file_util.h')
-rw-r--r--base/file_util.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/base/file_util.h b/base/file_util.h
index a868112..911ee0d 100644
--- a/base/file_util.h
+++ b/base/file_util.h
@@ -523,8 +523,8 @@ class BASE_EXPORT FileEnumerator {
// files in one directory will be returned before any files in a
// subdirectory.
//
- // |file_type| specifies whether the enumerator should match files,
- // directories, or both.
+ // |file_type|, a bit mask of FileType, specifies whether the enumerator
+ // should match files, directories, or both.
//
// |pattern| is an optional pattern for which files to match. This
// works like shell globbing. For example, "*.txt" or "Foo???.doc".
@@ -537,10 +537,10 @@ class BASE_EXPORT FileEnumerator {
// TODO(erikkay): Fix the pattern matching to work at all levels.
FileEnumerator(const FilePath& root_path,
bool recursive,
- FileType file_type);
+ int file_type);
FileEnumerator(const FilePath& root_path,
bool recursive,
- FileType file_type,
+ int file_type,
const FilePath::StringType& pattern);
~FileEnumerator();
@@ -587,7 +587,7 @@ class BASE_EXPORT FileEnumerator {
FilePath root_path_;
bool recursive_;
- FileType file_type_;
+ int file_type_;
FilePath::StringType pattern_; // Empty when we want to find everything.
// A stack that keeps track of which subdirectories we still need to