Issue #1263 - Part 1: Remove DiskSpaceWatcher

This commit is contained in:
wolfbeast 2019-11-08 10:49:03 +01:00 committed by Roy Tam
commit 92b01bf08a
20 changed files with 3 additions and 537 deletions

View file

@ -205,11 +205,6 @@ DOMStorageCache::ProcessUsageDelta(const DOMStorage* aStorage, int64_t aDelta)
bool
DOMStorageCache::ProcessUsageDelta(uint32_t aGetDataSetIndex, const int64_t aDelta)
{
// Check if we are in a low disk space situation
if (aDelta > 0 && mManager && mManager->IsLowDiskSpace()) {
return false;
}
// Check limit per this origin
Data& data = mData[aGetDataSetIndex];
uint64_t newOriginUsage = data.mOriginQuotaUsage + aDelta;