Index: webkit/fileapi/sandbox_quota_observer.cc |
diff --git a/webkit/fileapi/sandbox_quota_observer.cc b/webkit/fileapi/sandbox_quota_observer.cc |
index e733f59b906e2ba17f8ed0140b1f3dd2dd383edf..9b2e9baf6b47130486fa3744c763519c8e765779 100644 |
--- a/webkit/fileapi/sandbox_quota_observer.cc |
+++ b/webkit/fileapi/sandbox_quota_observer.cc |
@@ -34,13 +34,14 @@ void SandboxQuotaObserver::OnStartUpdate(const FileSystemURL& url) { |
} |
void SandboxQuotaObserver::OnUpdate(const FileSystemURL& url, |
- int64 delta) { |
+ int64 delta) { |
DCHECK(SandboxMountPointProvider::CanHandleType(url.type())); |
DCHECK(update_notify_runner_->RunsTasksOnCurrentThread()); |
FilePath usage_file_path = GetUsageCachePath(url); |
if (usage_file_path.empty()) |
return; |
- FileSystemUsageCache::AtomicUpdateUsageByDelta(usage_file_path, delta); |
+ if (delta) |
kinuko
2012/12/17 08:14:56
nit: while I'm in chrome I may prefer delta != 0
tzik
2012/12/17 08:18:54
Done.
|
+ FileSystemUsageCache::AtomicUpdateUsageByDelta(usage_file_path, delta); |
if (quota_manager_proxy_) { |
quota_manager_proxy_->NotifyStorageModified( |
quota::QuotaClient::kFileSystem, |