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

Unified Diff: webkit/fileapi/file_system_quota_client.cc

Issue 10828043: Wire up the deleteFileSystem operation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Adds comment. Created 8 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
« no previous file with comments | « webkit/fileapi/file_system_mount_point_provider.h ('k') | webkit/fileapi/isolated_mount_point_provider.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/fileapi/file_system_quota_client.cc
diff --git a/webkit/fileapi/file_system_quota_client.cc b/webkit/fileapi/file_system_quota_client.cc
index 9619ecc9b0c6098b5a74f9af4ce03c87db6d82e5..9812ae0b946f17565211dd9154daaaa9b2a85c60 100644
--- a/webkit/fileapi/file_system_quota_client.cc
+++ b/webkit/fileapi/file_system_quota_client.cc
@@ -18,6 +18,7 @@
#include "webkit/fileapi/file_system_quota_util.h"
#include "webkit/fileapi/file_system_usage_cache.h"
#include "webkit/fileapi/file_system_util.h"
+#include "webkit/fileapi/sandbox_mount_point_provider.h"
using base::SequencedTaskRunner;
using quota::QuotaThreadTask;
@@ -152,8 +153,13 @@ class FileSystemQuotaClient::DeleteOriginTask
// QuotaThreadTask:
virtual void RunOnTargetThread() OVERRIDE {
- if (file_system_context_->DeleteDataForOriginAndTypeOnFileThread(
- origin_, type_))
+ base::PlatformFileError result =
+ file_system_context_->sandbox_provider()->DeleteOriginDataOnFileThread(
+ file_system_context_,
+ file_system_context_->quota_manager_proxy(),
+ origin_,
+ type_);
+ if (result == base::PLATFORM_FILE_OK)
status_ = quota::kQuotaStatusOk;
else
status_ = quota::kQuotaErrorInvalidModification;
« no previous file with comments | « webkit/fileapi/file_system_mount_point_provider.h ('k') | webkit/fileapi/isolated_mount_point_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698