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

Unified Diff: storage/browser/quota/client_usage_tracker.cc

Issue 2592793002: Revert of Change how the quota system computes the total poolsize for temporary storage (Closed)
Patch Set: Created 4 years 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 | « storage/browser/quota/client_usage_tracker.h ('k') | storage/browser/quota/quota_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: storage/browser/quota/client_usage_tracker.cc
diff --git a/storage/browser/quota/client_usage_tracker.cc b/storage/browser/quota/client_usage_tracker.cc
index c5a17a54ae30698492ece16b8ea3b4dd26fb9d5b..c9c46f6d1a02abd845604ebcc3522add49ec5af7 100644
--- a/storage/browser/quota/client_usage_tracker.cc
+++ b/storage/browser/quota/client_usage_tracker.cc
@@ -165,15 +165,6 @@ void ClientUsageTracker::UpdateUsageCache(const GURL& origin, int64_t delta) {
AsWeakPtr(), origin));
}
-int64_t ClientUsageTracker::GetCachedUsage() const {
- int64_t usage = 0;
- for (const auto& host_and_usage_map : cached_usage_by_host_) {
- for (const auto& origin_and_usage : host_and_usage_map.second)
- usage += origin_and_usage.second;
- }
- return usage;
-}
-
void ClientUsageTracker::GetCachedHostsUsage(
std::map<std::string, int64_t>* host_usage) const {
DCHECK(host_usage);
« no previous file with comments | « storage/browser/quota/client_usage_tracker.h ('k') | storage/browser/quota/quota_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698