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

Unified Diff: content/child/web_url_loader_impl.cc

Issue 515753003: Add ServiceWorker timing information on the popup panel in DevTools's Network tab (2/2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Incorporate the reviews Created 6 years, 3 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/child/web_url_loader_impl.cc
diff --git a/content/child/web_url_loader_impl.cc b/content/child/web_url_loader_impl.cc
index ba560b65593dff68bbdce1f7e24b8028acd8cb12..9c5dbc4810bdc30ab4610498626094e09e5e38fa 100644
--- a/content/child/web_url_loader_impl.cc
+++ b/content/child/web_url_loader_impl.cc
@@ -767,6 +767,13 @@ void WebURLLoaderImpl::PopulateURLResponse(const GURL& url,
if (!info.load_timing.receive_headers_end.is_null()) {
WebURLLoadTiming timing;
PopulateURLLoadTiming(info.load_timing, &timing);
+ const TimeTicks kNullTicks;
+ timing.setServiceWorkerFetchStart(
+ (info.service_worker_fetch_start - kNullTicks).InSecondsF());
+ timing.setServiceWorkerFetchReady(
+ (info.service_worker_fetch_ready - kNullTicks).InSecondsF());
+ timing.setServiceWorkerFetchEnd(
+ (info.service_worker_fetch_end - kNullTicks).InSecondsF());
mmenke 2014/09/04 14:53:51 +2 indent (x3)
shimazu 2014/09/05 04:18:48 Done.
response->setLoadTiming(timing);
}

Powered by Google App Engine
This is Rietveld 408576698