| 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..29e11022a79b6433011eb32bd1afc275695445a1 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 != 0)
|
| + FileSystemUsageCache::AtomicUpdateUsageByDelta(usage_file_path, delta);
|
| if (quota_manager_proxy_) {
|
| quota_manager_proxy_->NotifyStorageModified(
|
| quota::QuotaClient::kFileSystem,
|
|
|