| Index: chrome/common/extensions/extension_file_util.cc
|
| diff --git a/chrome/common/extensions/extension_file_util.cc b/chrome/common/extensions/extension_file_util.cc
|
| index c02c82935e6a7887c881b80f5047a6428b1b641b..7b92b93bb6336ccf153094917e87e9113893edd7 100644
|
| --- a/chrome/common/extensions/extension_file_util.cc
|
| +++ b/chrome/common/extensions/extension_file_util.cc
|
| @@ -651,12 +651,10 @@ bool CheckForIllegalFilenames(const FilePath& extension_path,
|
| // Enumerate all files and directories in the extension root.
|
| // There is a problem when using pattern "_*" with FileEnumerator, so we have
|
| // to cheat with find_first_of and match all.
|
| + const int kFilesAndDirectories =
|
| + file_util::FileEnumerator::DIRECTORIES | file_util::FileEnumerator::FILES;
|
| file_util::FileEnumerator all_files(
|
| - extension_path,
|
| - false,
|
| - static_cast<file_util::FileEnumerator::FileType>(
|
| - file_util::FileEnumerator::DIRECTORIES |
|
| - file_util::FileEnumerator::FILES));
|
| + extension_path, false, kFilesAndDirectories);
|
|
|
| FilePath file;
|
| while (!(file = all_files.Next()).empty()) {
|
|
|