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 /chrome/tools | |
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 'chrome/tools')
-rw-r--r-- | chrome/tools/profiles/generate_profile.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/chrome/tools/profiles/generate_profile.cc b/chrome/tools/profiles/generate_profile.cc index ab7bbdf..47a8ea1 100644 --- a/chrome/tools/profiles/generate_profile.cc +++ b/chrome/tools/profiles/generate_profile.cc @@ -268,10 +268,8 @@ int main(int argc, const char* argv[]) { message_loop.RunAllPending(); - file_util::FileEnumerator file_iterator( - profile.GetPath(), false, - static_cast<file_util::FileEnumerator::FileType>( - file_util::FileEnumerator::FILES)); + file_util::FileEnumerator file_iterator(profile.GetPath(), false, + file_util::FileEnumerator::FILES); FilePath path = file_iterator.Next(); while (!path.empty()) { FilePath dst_file = dst_dir.Append(path.BaseName()); |