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

Unified Diff: content/browser/loader/resource_loader.cc

Issue 16324002: Expose net::LoadTimingInfo through content_shell (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 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 | « chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/loader/resource_loader.cc
diff --git a/content/browser/loader/resource_loader.cc b/content/browser/loader/resource_loader.cc
index 63195120388f9192f002504600611ac05d3dfe73..27f58eaab3c031ed595c201efb20e8a569f04d03 100644
--- a/content/browser/loader/resource_loader.cc
+++ b/content/browser/loader/resource_loader.cc
@@ -54,6 +54,9 @@ void PopulateResourceResponse(net::URLRequest* request,
request,
&response->head.appcache_id,
&response->head.appcache_manifest_url);
+ // TODO(mmenke): Figure out if LOAD_ENABLE_LOAD_TIMING is safe to remove.
+ if (request->load_flags() & net::LOAD_ENABLE_LOAD_TIMING)
+ request->GetLoadTimingInfo(&response->head.load_timing);
}
} // namespace
« no previous file with comments | « chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698