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

Unified Diff: webkit/fileapi/sandbox_quota_observer.cc

Issue 14096022: Make MountPointProvider pluggable from outside webkit/fileapi (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: build fix etc Created 7 years, 8 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
Index: webkit/fileapi/sandbox_quota_observer.cc
diff --git a/webkit/fileapi/sandbox_quota_observer.cc b/webkit/fileapi/sandbox_quota_observer.cc
index 727b28a72d6583406281772ef979b976d24770ac..b5ef19201cd0f6ac76e48c65e6fc8987a2be0968 100644
--- a/webkit/fileapi/sandbox_quota_observer.cc
+++ b/webkit/fileapi/sandbox_quota_observer.cc
@@ -29,7 +29,7 @@ SandboxQuotaObserver::SandboxQuotaObserver(
SandboxQuotaObserver::~SandboxQuotaObserver() {}
void SandboxQuotaObserver::OnStartUpdate(const FileSystemURL& url) {
- DCHECK(SandboxMountPointProvider::CanHandleType(url.type()));
+ DCHECK(SandboxMountPointProvider::IsSandboxType(url.type()));
DCHECK(update_notify_runner_->RunsTasksOnCurrentThread());
base::FilePath usage_file_path = GetUsageCachePath(url);
if (usage_file_path.empty())
@@ -39,7 +39,7 @@ void SandboxQuotaObserver::OnStartUpdate(const FileSystemURL& url) {
void SandboxQuotaObserver::OnUpdate(const FileSystemURL& url,
int64 delta) {
- DCHECK(SandboxMountPointProvider::CanHandleType(url.type()));
+ DCHECK(SandboxMountPointProvider::IsSandboxType(url.type()));
DCHECK(update_notify_runner_->RunsTasksOnCurrentThread());
if (quota_manager_proxy_) {
@@ -64,7 +64,7 @@ void SandboxQuotaObserver::OnUpdate(const FileSystemURL& url,
}
void SandboxQuotaObserver::OnEndUpdate(const FileSystemURL& url) {
- DCHECK(SandboxMountPointProvider::CanHandleType(url.type()));
+ DCHECK(SandboxMountPointProvider::IsSandboxType(url.type()));
DCHECK(update_notify_runner_->RunsTasksOnCurrentThread());
base::FilePath usage_file_path = GetUsageCachePath(url);
@@ -82,7 +82,7 @@ void SandboxQuotaObserver::OnEndUpdate(const FileSystemURL& url) {
}
void SandboxQuotaObserver::OnAccess(const FileSystemURL& url) {
- DCHECK(SandboxMountPointProvider::CanHandleType(url.type()));
+ DCHECK(SandboxMountPointProvider::IsSandboxType(url.type()));
if (quota_manager_proxy_) {
quota_manager_proxy_->NotifyStorageAccessed(
quota::QuotaClient::kFileSystem,
« no previous file with comments | « webkit/fileapi/sandbox_mount_point_provider.cc ('k') | webkit/fileapi/syncable/canned_syncable_file_system.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698