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

Unified Diff: webkit/browser/fileapi/sandbox_origin_database.cc

Issue 16950028: Move file_util::Delete to the base namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 | « webkit/browser/fileapi/sandbox_isolated_origin_database.cc ('k') | webkit/plugins/npapi/plugin_instance.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/browser/fileapi/sandbox_origin_database.cc
diff --git a/webkit/browser/fileapi/sandbox_origin_database.cc b/webkit/browser/fileapi/sandbox_origin_database.cc
index 02c5a3af3a0209949787e88f9908093d480006d5..0d7d3ef3af966d2f1dd05c3853721d5067bc46aa 100644
--- a/webkit/browser/fileapi/sandbox_origin_database.cc
+++ b/webkit/browser/fileapi/sandbox_origin_database.cc
@@ -108,7 +108,7 @@ bool SandboxOriginDatabase::Init(InitOption init_option,
DB_REPAIR_FAILED, DB_REPAIR_MAX);
// fall through
case DELETE_ON_CORRUPTION:
- if (!file_util::Delete(file_system_directory_, true))
+ if (!base::Delete(file_system_directory_, true))
return false;
if (!file_util::CreateDirectory(file_system_directory_))
return false;
@@ -167,7 +167,7 @@ bool SandboxOriginDatabase::RepairDatabase(const std::string& db_path) {
for (std::set<base::FilePath>::iterator dir_itr = directories.begin();
dir_itr != directories.end();
++dir_itr) {
- if (!file_util::Delete(file_system_directory_.Append(*dir_itr),
+ if (!base::Delete(file_system_directory_.Append(*dir_itr),
true /* recursive */)) {
DropDatabase();
return false;
@@ -301,7 +301,7 @@ base::FilePath SandboxOriginDatabase::GetDatabasePath() const {
void SandboxOriginDatabase::RemoveDatabase() {
DropDatabase();
- file_util::Delete(GetDatabasePath(), true /* recursive */);
+ base::Delete(GetDatabasePath(), true /* recursive */);
}
bool SandboxOriginDatabase::GetLastPathNumber(int* number) {
« no previous file with comments | « webkit/browser/fileapi/sandbox_isolated_origin_database.cc ('k') | webkit/plugins/npapi/plugin_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698