Index: chrome/browser/extensions/api/developer_private/developer_private_api.cc |
diff --git a/chrome/browser/extensions/api/developer_private/developer_private_api.cc b/chrome/browser/extensions/api/developer_private/developer_private_api.cc |
index 81c4fb643793c4f65644d359b9a6b142f28e55c6..6da6d0e6e23dad70aae9f5ab43b037ed1a0f552d 100644 |
--- a/chrome/browser/extensions/api/developer_private/developer_private_api.cc |
+++ b/chrome/browser/extensions/api/developer_private/developer_private_api.cc |
@@ -920,7 +920,7 @@ bool DeveloperPrivateExportSyncfsFolderToLocalfsFunction::RunImpl() { |
void DeveloperPrivateExportSyncfsFolderToLocalfsFunction:: |
ClearPrexistingDirectoryContent(const base::FilePath& project_path) { |
- if (!base::Delete(project_path, true/*recursive*/)) { |
+ if (!base::DeleteFile(project_path, true/*recursive*/)) { |
SetError("Error in copying files from sync filesystem."); |
content::BrowserThread::PostTask(content::BrowserThread::UI, FROM_HERE, |
base::Bind(&DeveloperPrivateExportSyncfsFolderToLocalfsFunction:: |