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

Unified Diff: webkit/quota/quota_temporary_storage_evictor.cc

Issue 15907004: [Quota] Add UsageTracker::GetGlobalLimitedUsage (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: +LazyInitialize Created 7 years, 7 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/quota/quota_manager_unittest.cc ('k') | webkit/quota/quota_temporary_storage_evictor_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « webkit/quota/quota_manager_unittest.cc ('k') | webkit/quota/quota_temporary_storage_evictor_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698