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

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

Issue 2250623003: Keep ServiceWorkerMetrics::Site in ServiceWorkerVersion (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: diff from https://codereview.chromium.org/2251633002/#ps40001 Created 4 years, 4 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/service_worker/service_worker_url_request_job.cc
diff --git a/content/browser/service_worker/service_worker_url_request_job.cc b/content/browser/service_worker/service_worker_url_request_job.cc
index c69bc87efbda43e9e323c6b7e8319970108d142e..ca6f09a0f6834cc4b6fb48646ed5f60b9aa00106 100644
--- a/content/browser/service_worker/service_worker_url_request_job.cc
+++ b/content/browser/service_worker/service_worker_url_request_job.cc
@@ -679,8 +679,10 @@ void ServiceWorkerURLRequestJob::DidPrepareFetchEvent(
initial_worker_status_ != EmbeddedWorkerStatus::RUNNING) {
return;
}
- if (ServiceWorkerMetrics::ShouldExcludeURLFromHistogram(request()->url()))
+ if (ServiceWorkerMetrics::ShouldExcludeSiteFromHistogram(
+ version->site_for_uma())) {
return;
+ }
ServiceWorkerMetrics::RecordActivatedWorkerPreparationTimeForMainFrame(
worker_ready_time_ - request()->creation_time(), initial_worker_status_,
version->embedded_worker()->start_situation());

Powered by Google App Engine
This is Rietveld 408576698