Chromium Code Reviews| Index: webkit/fileapi/file_system_context.cc |
| diff --git a/webkit/fileapi/file_system_context.cc b/webkit/fileapi/file_system_context.cc |
| index d27b87d0f6f6bd17b0bb1266e70d8c776fd88bfc..71335d4a1175cf6669660a85ba0bb9f5dd9870c9 100644 |
| --- a/webkit/fileapi/file_system_context.cc |
| +++ b/webkit/fileapi/file_system_context.cc |
| @@ -70,14 +70,23 @@ bool FileSystemContext::IsStorageUnlimited(const GURL& origin) { |
| special_storage_policy_->IsStorageUnlimited(origin)); |
| } |
| -void FileSystemContext::DeleteDataForOriginOnFileThread( |
| +bool FileSystemContext::DeleteDataForOriginOnFileThread( |
| const GURL& origin_url) { |
| - DCHECK(path_manager_.get()); |
| DCHECK(file_message_loop_->BelongsToCurrentThread()); |
| FilePath path_for_origin = |
| sandbox_provider()->GetBaseDirectoryForOrigin(origin_url); |
| - file_util::Delete(path_for_origin, true /* recursive */); |
| + return file_util::Delete(path_for_origin, true /* recursive */); |
| +} |
| + |
|
kinuko
2011/05/12 08:59:22
nit: extra empty line
tzik (google)
2011/05/12 10:47:06
Done.
|
| + |
| +bool FileSystemContext::DeleteDataForOriginAndTypeOnFileThread( |
| + const GURL& origin_url, FileSystemType type) { |
| + DCHECK(file_message_loop_->BelongsToCurrentThread()); |
| + |
| + FilePath path_for_origin = |
| + sandbox_provider()->GetBaseDirectoryForOriginAndType(origin_url, type); |
| + return file_util::Delete(path_for_origin, true /* recursive */); |
| } |
| void FileSystemContext::DeleteOnCorrectThread() const { |