Index: chrome/browser/file_select_helper.cc |
diff --git a/chrome/browser/file_select_helper.cc b/chrome/browser/file_select_helper.cc |
index 48cf490d550998abd1cf5135d553d7f277534b24..e4d5093604fdb688ab74b6d550b8652425e89191 100644 |
--- a/chrome/browser/file_select_helper.cc |
+++ b/chrome/browser/file_select_helper.cc |
@@ -8,6 +8,7 @@ |
#include "base/bind.h" |
#include "base/file_util.h" |
+#include "base/files/file_enumerator.h" |
#include "base/platform_file.h" |
#include "base/string_util.h" |
#include "base/strings/string_split.h" |
@@ -219,7 +220,7 @@ void FileSelectHelper::OnListFile( |
// Directory upload returns directories via a "." file, so that |
// empty directories are included. This util call just checks |
// the flags in the structure; there's no file I/O going on. |
- if (file_util::FileEnumerator::IsDirectory(data.info)) |
+ if (data.info.IsDirectory()) |
entry->results_.push_back(data.path.Append(FILE_PATH_LITERAL("."))); |
else |
entry->results_.push_back(data.path); |