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()); |