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

Unified Diff: content/browser/service_worker/service_worker_storage.cc

Issue 1232923003: ServiceWorker: Record result of purging stale resources (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use std::abs Created 5 years, 5 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 | « content/browser/service_worker/service_worker_metrics.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/service_worker/service_worker_storage.cc
diff --git a/content/browser/service_worker/service_worker_storage.cc b/content/browser/service_worker/service_worker_storage.cc
index 5178d818d50afff19a05eeb2f92860432aacd870..e4eb7f2ab270cb1708d9d75f0270227f162e0f2c 100644
--- a/content/browser/service_worker/service_worker_storage.cc
+++ b/content/browser/service_worker/service_worker_storage.cc
@@ -1430,6 +1430,8 @@ void ServiceWorkerStorage::OnResourcePurged(int64 id, int rv) {
DCHECK(is_purge_pending_);
is_purge_pending_ = false;
+ ServiceWorkerMetrics::RecordPurgeResourceResult(rv);
+
database_task_manager_->GetTaskRunner()->PostTask(
FROM_HERE,
base::Bind(base::IgnoreResult(
@@ -1437,6 +1439,7 @@ void ServiceWorkerStorage::OnResourcePurged(int64 id, int rv) {
base::Unretained(database_.get()),
std::set<int64>(&id, &id + 1)));
+ // Continue purging resources regardless of the previous result.
ContinuePurgingResources();
}
« no previous file with comments | « content/browser/service_worker/service_worker_metrics.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698