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

Issue 3028026: Fix bug which caused DNS time not to be reported by LoadTimingObserver. (Closed)

Created:
10 years, 5 months ago by tonyg
Modified:
9 years, 6 months ago
Reviewers:
eroman, pfeldman
CC:
chromium-reviews, cbentzel+watch_chromium.org, Paweł Hajdan Jr., darin-cc_chromium.org, ben+cc_chromium.org
Visibility:
Public.

Description

Fix bug which caused DNS time not to be reported by LoadTimingObserver. The problem was the LogBoundConnectJobToRequest() sets SOCKET_POOL_BOUND_TO_CONNECT_JOB after RemoveConnectJob() ends SOCKET_POOL_CONNECT_JOB. Since there is no chance to return to the event loop, it is safe (although fragile), to store the last connect job record and access that on SOCKET_POOL_BOUND_TO_CONNECT_JOB. Also, after fixing the DNS issue, it became apparent that what was being measured as connect time actually included more than just the TCP connect. So I fixed that as well. BUG=50229 TEST=LoadTimingObserverTest.* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=53945

Patch Set 1 #

Total comments: 3

Patch Set 2 : Revert connect phase change #

Total comments: 1

Patch Set 3 : Use constant instead of -1 #

Total comments: 1

Patch Set 4 : Indentation fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -15 lines) Patch
M chrome/browser/net/load_timing_observer.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/net/load_timing_observer.cc View 1 2 3 5 chunks +18 lines, -11 lines 0 comments Download
M chrome/browser/net/load_timing_observer_unittest.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M webkit/glue/resource_loader_bridge.h View 1 chunk +4 lines, -4 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
tonyg
10 years, 5 months ago (2010-07-27 01:30:15 UTC) #1
pfeldman
Eric, do you think we can call RemoveConnectJob after calling LogBoundConnectJobToRequest in both branches of ...
10 years, 5 months ago (2010-07-27 06:25:07 UTC) #2
tonyg
On Mon, Jul 26, 2010 at 11:25 PM, <pfeldman@chromium.org> wrote: > Eric, do you think ...
10 years, 5 months ago (2010-07-27 14:47:17 UTC) #3
pfeldman
> Cropping it down to TCP_CONNECT was one way I found to resolve this overlap ...
10 years, 5 months ago (2010-07-27 14:54:41 UTC) #4
tonyg
On Tue, Jul 27, 2010 at 7:54 AM, <pfeldman@chromium.org> wrote: > Cropping it down to ...
10 years, 5 months ago (2010-07-27 15:55:28 UTC) #5
pfeldman
>> If the definition were narrowed to only include the time to establish the TCP ...
10 years, 5 months ago (2010-07-27 17:15:17 UTC) #6
tonyg
On 2010/07/27 17:15:17, pfeldman wrote: > >> If the definition were narrowed to only include ...
10 years, 5 months ago (2010-07-27 18:26:22 UTC) #7
pfeldman
LGTM with a nit. Thanks for fixing this. http://codereview.chromium.org/3028026/diff/9001/10001 File chrome/browser/net/load_timing_observer.cc (right): http://codereview.chromium.org/3028026/diff/9001/10001#newcode51 chrome/browser/net/load_timing_observer.cc:51: LoadTimingObserver::LoadTimingObserver() ...
10 years, 5 months ago (2010-07-27 18:30:33 UTC) #8
tonyg
On 2010/07/27 18:30:33, pfeldman wrote: > LGTM with a nit. Thanks for fixing this. > ...
10 years, 5 months ago (2010-07-27 20:33:52 UTC) #9
eroman
lgtm http://codereview.chromium.org/3028026/diff/15001/16001 File chrome/browser/net/load_timing_observer.cc (right): http://codereview.chromium.org/3028026/diff/15001/16001#newcode206 chrome/browser/net/load_timing_observer.cc:206: connect_job_to_record_.find(source.id); nit: indent by 4.
10 years, 5 months ago (2010-07-27 23:54:06 UTC) #10
tonyg
10 years, 5 months ago (2010-07-27 23:58:46 UTC) #11
On 2010/07/27 23:54:06, eroman wrote:
> lgtm
> 
> http://codereview.chromium.org/3028026/diff/15001/16001
> File chrome/browser/net/load_timing_observer.cc (right):
> 
> http://codereview.chromium.org/3028026/diff/15001/16001#newcode206
> chrome/browser/net/load_timing_observer.cc:206:
> connect_job_to_record_.find(source.id);
> nit: indent by 4.
Thanks. Fixed.

Powered by Google App Engine
This is Rietveld 408576698