| 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 2db0cfb6ccc4ac116ecabaeb6a7140c07a48b634..666a1be972ddcc3b11799716a16285498ab1128e 100644
|
| --- a/content/browser/service_worker/service_worker_url_request_job.cc
|
| +++ b/content/browser/service_worker/service_worker_url_request_job.cc
|
| @@ -296,7 +296,8 @@ void ServiceWorkerURLRequestJob::GetExtraResponseInfo(
|
| bool* was_fallback_required_by_service_worker,
|
| GURL* original_url_via_service_worker,
|
| blink::WebServiceWorkerResponseType* response_type_via_service_worker,
|
| - base::TimeTicks* worker_start_time) const {
|
| + base::TimeTicks* worker_start_time,
|
| + base::TimeTicks* worker_ready_time) const {
|
| if (response_type_ != FORWARD_TO_SERVICE_WORKER) {
|
| *was_fetched_via_service_worker = false;
|
| *was_fallback_required_by_service_worker = false;
|
| @@ -310,6 +311,7 @@ void ServiceWorkerURLRequestJob::GetExtraResponseInfo(
|
| *original_url_via_service_worker = response_url_;
|
| *response_type_via_service_worker = service_worker_response_type_;
|
| *worker_start_time = worker_start_time_;
|
| + *worker_ready_time = worker_ready_time_;
|
| }
|
|
|
|
|
| @@ -471,7 +473,8 @@ bool ServiceWorkerURLRequestJob::CreateRequestBodyBlob(std::string* blob_uuid,
|
| }
|
|
|
| void ServiceWorkerURLRequestJob::DidPrepareFetchEvent() {
|
| - load_timing_info_.send_start = base::TimeTicks::Now();
|
| + worker_ready_time_ = base::TimeTicks::Now();
|
| + load_timing_info_.send_start = worker_ready_time_;
|
| }
|
|
|
| void ServiceWorkerURLRequestJob::DidDispatchFetchEvent(
|
|
|