Index: webkit/quota/quota_temporary_storage_evictor.cc |
diff --git a/webkit/quota/quota_temporary_storage_evictor.cc b/webkit/quota/quota_temporary_storage_evictor.cc |
index 001440bac9bb54670c0c3eefe3bf53415e3342fa..5e4e088a1706f3f080d0de3dfec10ae93f8f9f79 100644 |
--- a/webkit/quota/quota_temporary_storage_evictor.cc |
+++ b/webkit/quota/quota_temporary_storage_evictor.cc |
@@ -166,10 +166,8 @@ void QuotaTemporaryStorageEvictor::OnGotUsageAndQuotaForEviction( |
const UsageAndQuota& qau) { |
DCHECK(CalledOnValidThread()); |
- // unlimited_usage is a subset of usage |
- DCHECK_GE(qau.global_usage, qau.global_unlimited_usage); |
- |
- int64 usage = qau.global_usage - qau.global_unlimited_usage; |
+ int64 usage = qau.global_limited_usage; |
+ DCHECK_GE(usage, 0); |
if (status != kQuotaStatusOk) |
++statistics_.num_errors_on_getting_usage_and_quota; |