Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(26)

Unified Diff: webkit/database/database_tracker.cc

Issue 13165005: Move FileEnumerator to its own file, do some refactoring. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge, fixes Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/valgrind/tsan/suppressions.txt ('k') | webkit/dom_storage/dom_storage_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/database/database_tracker.cc
diff --git a/webkit/database/database_tracker.cc b/webkit/database/database_tracker.cc
index 85fa2624eb93d59dc8f37ce06e9d8e6e0337111b..ed217f857259026e994e07da0dcb069f8b59c93b 100644
--- a/webkit/database/database_tracker.cc
+++ b/webkit/database/database_tracker.cc
@@ -10,6 +10,7 @@
#include "base/basictypes.h"
#include "base/bind.h"
#include "base/file_util.h"
+#include "base/files/file_enumerator.h"
#include "base/message_loop_proxy.h"
#include "base/platform_file.h"
#include "base/strings/string_number_conversions.h"
@@ -412,10 +413,10 @@ bool DatabaseTracker::DeleteOrigin(const base::string16& origin_identifier,
file_util::CreateTemporaryDirInDir(db_dir_,
kTemporaryDirectoryPrefix,
&new_origin_dir);
- file_util::FileEnumerator databases(
+ base::FileEnumerator databases(
origin_dir,
false,
- file_util::FileEnumerator::FILES);
+ base::FileEnumerator::FILES);
for (base::FilePath database = databases.Next(); !database.empty();
database = databases.Next()) {
base::FilePath new_file = new_origin_dir.Append(database.BaseName());
@@ -457,10 +458,10 @@ bool DatabaseTracker::LazyInit() {
// If there are left-over directories from failed deletion attempts, clean
// them up.
if (file_util::DirectoryExists(db_dir_)) {
- file_util::FileEnumerator directories(
+ base::FileEnumerator directories(
db_dir_,
false,
- file_util::FileEnumerator::DIRECTORIES,
+ base::FileEnumerator::DIRECTORIES,
kTemporaryDirectoryPattern);
for (base::FilePath directory = directories.Next(); !directory.empty();
directory = directories.Next()) {
« no previous file with comments | « tools/valgrind/tsan/suppressions.txt ('k') | webkit/dom_storage/dom_storage_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698