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

Unified Diff: webkit/browser/database/database_tracker.cc

Issue 19052005: Move PathIsWritable, DirectoryExists, ContentsEqual, and TextContentsEqual to the base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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
Index: webkit/browser/database/database_tracker.cc
diff --git a/webkit/browser/database/database_tracker.cc b/webkit/browser/database/database_tracker.cc
index ce155ca3b05fa1b2b3326a282789598cd34d21d1..cc14e1404244131a810ed7786305b4c5de0f76e8 100644
--- a/webkit/browser/database/database_tracker.cc
+++ b/webkit/browser/database/database_tracker.cc
@@ -451,7 +451,7 @@ bool DatabaseTracker::LazyInit() {
// If there are left-over directories from failed deletion attempts, clean
// them up.
- if (file_util::DirectoryExists(db_dir_)) {
+ if (base::DirectoryExists(db_dir_)) {
base::FileEnumerator directories(
db_dir_,
false,
@@ -467,7 +467,7 @@ bool DatabaseTracker::LazyInit() {
// have a meta table, delete the database directory.
const base::FilePath kTrackerDatabaseFullPath =
db_dir_.Append(base::FilePath(kTrackerDatabaseFileName));
- if (file_util::DirectoryExists(db_dir_) &&
+ if (base::DirectoryExists(db_dir_) &&
base::PathExists(kTrackerDatabaseFullPath) &&
(!db_->Open(kTrackerDatabaseFullPath) ||
!sql::MetaTable::DoesTableExist(db_.get()))) {
@@ -797,7 +797,7 @@ void DatabaseTracker::DeleteIncognitoDBDirectory() {
base::FilePath incognito_db_dir =
profile_path_.Append(kIncognitoDatabaseDirectoryName);
- if (file_util::DirectoryExists(incognito_db_dir))
+ if (base::DirectoryExists(incognito_db_dir))
base::Delete(incognito_db_dir, true);
}
« no previous file with comments | « webkit/browser/appcache/appcache_database_unittest.cc ('k') | webkit/browser/dom_storage/dom_storage_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698