diff options
Diffstat (limited to 'chrome/browser/profiles/profile_manager.cc')
-rw-r--r-- | chrome/browser/profiles/profile_manager.cc | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/chrome/browser/profiles/profile_manager.cc b/chrome/browser/profiles/profile_manager.cc index 43f008c..8b57d6e 100644 --- a/chrome/browser/profiles/profile_manager.cc +++ b/chrome/browser/profiles/profile_manager.cc @@ -11,6 +11,7 @@ #include "base/debug/trace_event.h" #include "base/deferred_sequenced_task_runner.h" #include "base/file_util.h" +#include "base/files/file_enumerator.h" #include "base/files/file_path.h" #include "base/metrics/histogram.h" #include "base/prefs/pref_registry_simple.h" @@ -96,14 +97,10 @@ std::vector<base::FilePath>& ProfilesToDelete() { int64 ComputeFilesSize(const base::FilePath& directory, const base::FilePath::StringType& pattern) { int64 running_size = 0; - file_util::FileEnumerator iter(directory, false, - file_util::FileEnumerator::FILES, - pattern); - while (!iter.Next().empty()) { - file_util::FileEnumerator::FindInfo info; - iter.GetFindInfo(&info); - running_size += file_util::FileEnumerator::GetFilesize(info); - } + base::FileEnumerator iter(directory, false, base::FileEnumerator::FILES, + pattern); + while (!iter.Next().empty()) + running_size += iter.GetInfo().GetSize(); return running_size; } |