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

Unified Diff: content/browser/storage_partition_impl.cc

Issue 633273002: Added quota client for serviceworker. Enables 'clear past <time> data'. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Logic to Core Created 6 years, 2 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
Index: content/browser/storage_partition_impl.cc
diff --git a/content/browser/storage_partition_impl.cc b/content/browser/storage_partition_impl.cc
index 42a5195fb805f58499d442683916ceab46688ab7..2f10ddc406f2fb453186e525f1d9876fb6ac40e8 100644
--- a/content/browser/storage_partition_impl.cc
+++ b/content/browser/storage_partition_impl.cc
@@ -233,7 +233,8 @@ int StoragePartitionImpl::GenerateQuotaClientMask(uint32 remove_mask) {
quota_client_mask |= storage::QuotaClient::kAppcache;
if (remove_mask & StoragePartition::REMOVE_DATA_MASK_INDEXEDDB)
quota_client_mask |= storage::QuotaClient::kIndexedDatabase;
- // TODO(jsbell): StoragePartition::REMOVE_DATA_MASK_SERVICE_WORKERS)
+ if (remove_mask & StoragePartition::REMOVE_DATA_MASK_SERVICE_WORKERS)
+ quota_client_mask |= storage::QuotaClient::kServiceWorker;
return quota_client_mask;
}

Powered by Google App Engine
This is Rietveld 408576698