summaryrefslogtreecommitdiffstats
path: root/base/file_util_posix.cc
diff options
context:
space:
mode:
authortfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-15 13:09:27 +0000
committertfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-15 13:09:27 +0000
commit58b7c5a6c3ecac1a9c6c5e7da032bd06c0863c91 (patch)
tree161a46e0522b42a333ee6e711fc84b25b6a316ca /base/file_util_posix.cc
parent6b4fa88ebfd4779e1509317b7b09c56e8458f5d9 (diff)
downloadchromium_src-58b7c5a6c3ecac1a9c6c5e7da032bd06c0863c91.zip
chromium_src-58b7c5a6c3ecac1a9c6c5e7da032bd06c0863c91.tar.gz
chromium_src-58b7c5a6c3ecac1a9c6c5e7da032bd06c0863c91.tar.bz2
base: Rename FileEnumerator::FILE_TYPE to FileEnumerator::FileType.
enum types should be named using CamelCase as class and function names, not using MACRO_STYLE. BUG=None TEST=None R=evan@chromium.org Review URL: http://codereview.chromium.org/7618037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@96766 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/file_util_posix.cc')
-rw-r--r--base/file_util_posix.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/base/file_util_posix.cc b/base/file_util_posix.cc
index 5c9fb14..9904584 100644
--- a/base/file_util_posix.cc
+++ b/base/file_util_posix.cc
@@ -172,7 +172,7 @@ bool Delete(const FilePath& path, bool recursive) {
bool success = true;
std::stack<std::string> directories;
directories.push(path.value());
- FileEnumerator traversal(path, true, static_cast<FileEnumerator::FILE_TYPE>(
+ FileEnumerator traversal(path, true, static_cast<FileEnumerator::FileType>(
FileEnumerator::FILES | FileEnumerator::DIRECTORIES |
FileEnumerator::SHOW_SYM_LINKS));
for (FilePath current = traversal.Next(); success && !current.empty();
@@ -260,11 +260,11 @@ bool CopyDirectory(const FilePath& from_path,
return false;
bool success = true;
- FileEnumerator::FILE_TYPE traverse_type =
- static_cast<FileEnumerator::FILE_TYPE>(FileEnumerator::FILES |
+ FileEnumerator::FileType traverse_type =
+ static_cast<FileEnumerator::FileType>(FileEnumerator::FILES |
FileEnumerator::SHOW_SYM_LINKS);
if (recursive)
- traverse_type = static_cast<FileEnumerator::FILE_TYPE>(
+ traverse_type = static_cast<FileEnumerator::FileType>(
traverse_type | FileEnumerator::DIRECTORIES);
FileEnumerator traversal(from_path, recursive, traverse_type);
@@ -642,7 +642,7 @@ bool SetCurrentDirectory(const FilePath& path) {
FileEnumerator::FileEnumerator(const FilePath& root_path,
bool recursive,
- FileEnumerator::FILE_TYPE file_type)
+ FileType file_type)
: current_directory_entry_(0),
root_path_(root_path),
recursive_(recursive),
@@ -654,7 +654,7 @@ FileEnumerator::FileEnumerator(const FilePath& root_path,
FileEnumerator::FileEnumerator(const FilePath& root_path,
bool recursive,
- FileEnumerator::FILE_TYPE file_type,
+ FileType file_type,
const FilePath::StringType& pattern)
: current_directory_entry_(0),
root_path_(root_path),