Index: chrome/test/ui/ui_test.cc |
diff --git a/chrome/test/ui/ui_test.cc b/chrome/test/ui/ui_test.cc |
index a7672982b4f182847a4add4ed23671224b00daa7..84391fc6778e5a98a5149263f952f5de0ba7fb77 100644 |
--- a/chrome/test/ui/ui_test.cc |
+++ b/chrome/test/ui/ui_test.cc |
@@ -17,6 +17,7 @@ |
#include "base/command_line.h" |
#include "base/environment.h" |
#include "base/file_util.h" |
+#include "base/files/file_enumerator.h" |
#include "base/files/file_path.h" |
#include "base/files/scoped_temp_dir.h" |
#include "base/json/json_file_value_serializer.h" |
@@ -426,11 +427,9 @@ int UITestBase::GetCrashCount() const { |
PathService::Get(chrome::DIR_CRASH_DUMPS, &crash_dump_path); |
int files_found = 0; |
- file_util::FileEnumerator en(crash_dump_path, false, |
- file_util::FileEnumerator::FILES); |
+ base::FileEnumerator en(crash_dump_path, false, base::FileEnumerator::FILES); |
while (!en.Next().empty()) { |
- file_util::FileEnumerator::FindInfo info; |
- if (file_util::FileEnumerator::GetLastModifiedTime(info) > test_start_time_) |
+ if (en.GetInfo().GetLastModifiedTime() > test_start_time_) |
files_found++; |
} |
@@ -439,7 +438,7 @@ int UITestBase::GetCrashCount() const { |
return files_found / 2; |
#else |
return files_found; |
- #endif |
+#endif |
} |
std::string UITestBase::CheckErrorsAndCrashes() const { |