Chromium Code Reviews| Index: net/url_request/url_request.cc |
| =================================================================== |
| --- net/url_request/url_request.cc (revision 199488) |
| +++ net/url_request/url_request.cc (working copy) |
| @@ -1034,7 +1034,18 @@ |
| // socket is closed and the ClientSocketHandle is Reset, which will happen |
| // once the body is complete. The start times should already be populated. |
| if (job_) { |
| + // Keep a copy of the two times the URLRequest sets. |
| + base::TimeTicks request_start = load_timing_info_.request_start; |
| + base::Time request_start_time = load_timing_info_.request_start_time; |
|
mmenke
2013/05/10 18:32:26
I'm not a big fan of this, but other solutions see
|
| + |
| + // Clear load times. Shouldn't be neded, but gives the GetLoadTimingInfo a |
| + // consistent place to start from. |
| + load_timing_info_ = LoadTimingInfo(); |
| job_->GetLoadTimingInfo(&load_timing_info_); |
| + |
| + load_timing_info_.request_start = request_start; |
| + load_timing_info_.request_start_time = request_start_time; |
| + |
| ConvertRealLoadTimesToBlockingTimes(&load_timing_info_); |
| } |
| } |