diff options
author | haruki@chromium.org <haruki@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-12 01:57:23 +0000 |
---|---|---|
committer | haruki@chromium.org <haruki@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-12 01:57:23 +0000 |
commit | 84c3f1642184211bcf188e8f9ed763603af57511 (patch) | |
tree | 7063b340791fe3725a6b2b68047605bde1770479 /webkit/fileapi/native_file_util.cc | |
parent | adb3145c1640318d837ce43cb6388500218d452e (diff) | |
download | chromium_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 'webkit/fileapi/native_file_util.cc')
-rw-r--r-- | webkit/fileapi/native_file_util.cc | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/webkit/fileapi/native_file_util.cc b/webkit/fileapi/native_file_util.cc index 6a9d5cd..995a9e9 100644 --- a/webkit/fileapi/native_file_util.cc +++ b/webkit/fileapi/native_file_util.cc @@ -39,7 +39,7 @@ class NativeFileEnumerator : public FileSystemFileUtil::AbstractFileEnumerator { public: NativeFileEnumerator(const FilePath& root_path, bool recursive, - file_util::FileEnumerator::FileType file_type) + int file_type) : file_enum_(root_path, recursive, file_type) { #if defined(OS_WIN) memset(&file_util_info_, 0, sizeof(file_util_info_)); @@ -158,11 +158,9 @@ PlatformFileError NativeFileUtil::GetFileInfo( FileSystemFileUtil::AbstractFileEnumerator* NativeFileUtil::CreateFileEnumerator(const FilePath& root_path, bool recursive) { - return new NativeFileEnumerator( - root_path, recursive, - static_cast<file_util::FileEnumerator::FileType>( - file_util::FileEnumerator::FILES | - file_util::FileEnumerator::DIRECTORIES)); + return new NativeFileEnumerator(root_path, recursive, + file_util::FileEnumerator::FILES | + file_util::FileEnumerator::DIRECTORIES); } PlatformFileError NativeFileUtil::Touch( |