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

Unified Diff: base/files/file_util_proxy.cc

Issue 2528193002: Remove FileUtilProxy:DeleteFile(). (Closed)
Patch Set: fix build error Created 4 years, 1 month 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 | « base/files/file_util_proxy.h ('k') | chrome/browser/safe_browsing/download_feedback.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/files/file_util_proxy.cc
diff --git a/base/files/file_util_proxy.cc b/base/files/file_util_proxy.cc
index 633d162599c67a0cfe27cf84db37a05ab0321663..54a56610630ec77d93d5e9d1635baa9c8f893b53 100644
--- a/base/files/file_util_proxy.cc
+++ b/base/files/file_util_proxy.cc
@@ -48,19 +48,6 @@ class GetFileInfoHelper {
DISALLOW_COPY_AND_ASSIGN(GetFileInfoHelper);
};
-File::Error DeleteAdapter(const FilePath& file_path, bool recursive) {
- if (!PathExists(file_path)) {
- return File::FILE_ERROR_NOT_FOUND;
- }
- if (!base::DeleteFile(file_path, recursive)) {
- if (!recursive && !base::IsDirectoryEmpty(file_path)) {
- return File::FILE_ERROR_NOT_EMPTY;
- }
- return File::FILE_ERROR_FAILED;
- }
- return File::FILE_OK;
-}
-
} // namespace
// Retrieves the information about a file. It is invalid to pass NULL for the
@@ -78,17 +65,6 @@ bool FileUtilProxy::GetFileInfo(
}
// static
-bool FileUtilProxy::DeleteFile(TaskRunner* task_runner,
- const FilePath& file_path,
- bool recursive,
- const StatusCallback& callback) {
- return base::PostTaskAndReplyWithResult(
- task_runner, FROM_HERE,
- Bind(&DeleteAdapter, file_path, recursive),
- callback);
-}
-
-// static
bool FileUtilProxy::Touch(
TaskRunner* task_runner,
const FilePath& file_path,
« no previous file with comments | « base/files/file_util_proxy.h ('k') | chrome/browser/safe_browsing/download_feedback.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698