Index: chrome/test/ui/ui_test.cc |
diff --git a/chrome/test/ui/ui_test.cc b/chrome/test/ui/ui_test.cc |
index 87c56794272f005e6c1649aa02915f943e135959..b4717156bfdeeeb5f5717b3018dbdc3b6f05e9e2 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" |
@@ -447,11 +448,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++; |
} |
@@ -460,7 +459,7 @@ int UITestBase::GetCrashCount() const { |
return files_found / 2; |
#else |
return files_found; |
- #endif |
+#endif |
} |
std::string UITestBase::CheckErrorsAndCrashes() const { |