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

Unified Diff: webkit/browser/dom_storage/dom_storage_database.cc

Issue 18286004: Move PathExists to 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/dom_storage/dom_storage_database.cc
diff --git a/webkit/browser/dom_storage/dom_storage_database.cc b/webkit/browser/dom_storage/dom_storage_database.cc
index 24713a06bd7394a024dded3b8e3b5fc8d77c86f5..12e38ed74ddac86fe3ef5f41d12703c0e6c39a75 100644
--- a/webkit/browser/dom_storage/dom_storage_database.cc
+++ b/webkit/browser/dom_storage/dom_storage_database.cc
@@ -88,7 +88,7 @@ bool DomStorageDatabase::CommitChanges(bool clear_all_first,
// If we're being asked to commit changes that will result in an
// empty database, we return true if the database file doesn't exist.
return clear_all_first && changes.empty() &&
- !file_util::PathExists(file_path_);
+ !base::PathExists(file_path_);
}
bool old_known_to_be_empty = known_to_be_empty_;
@@ -150,7 +150,7 @@ bool DomStorageDatabase::LazyOpen(bool create_if_needed) {
if (IsOpen())
return true;
- bool database_exists = file_util::PathExists(file_path_);
+ bool database_exists = base::PathExists(file_path_);
if (!database_exists && !create_if_needed) {
// If the file doesn't exist already and we haven't been asked to create
@@ -257,7 +257,7 @@ bool DomStorageDatabase::CreateTableV2() {
bool DomStorageDatabase::DeleteFileAndRecreate() {
DCHECK(!IsOpen());
- DCHECK(file_util::PathExists(file_path_));
+ DCHECK(base::PathExists(file_path_));
// We should only try and do this once.
if (tried_to_recreate_)
« no previous file with comments | « webkit/browser/dom_storage/dom_storage_area_unittest.cc ('k') | webkit/browser/dom_storage/dom_storage_database_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698