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

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

Issue 1155043002: Record send_start timing info after starting ServiceWorker (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 7106aa8ea9891693057be16b428db94679cb2e06..c96d47d31a0d18511de2e514c54654c3e4ade42c 100644
--- a/content/browser/service_worker/service_worker_url_request_job.cc
+++ b/content/browser/service_worker/service_worker_url_request_job.cc
@@ -357,7 +357,6 @@ void ServiceWorkerURLRequestJob::StartRequest() {
base::Bind(&ServiceWorkerURLRequestJob::DidDispatchFetchEvent,
weak_factory_.GetWeakPtr())));
fetch_start_time_ = base::TimeTicks::Now();
- load_timing_info_.send_start = fetch_start_time_;
fetch_dispatcher_->Run();
return;
}
@@ -474,6 +473,7 @@ bool ServiceWorkerURLRequestJob::CreateRequestBodyBlob(std::string* blob_uuid,
void ServiceWorkerURLRequestJob::DidPrepareFetchEvent() {
fetch_ready_time_ = base::TimeTicks::Now();
+ load_timing_info_.send_start = fetch_ready_time_;
}
void ServiceWorkerURLRequestJob::DidDispatchFetchEvent(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698