Get correct PLT measurement for Resource Prefetching for Mobile Web
commit02bf16eb1cd50ea179cbfb4e63430773fb18d93f
authorzhenw <zhenw@chromium.org>
Fri, 8 May 2015 19:23:39 +0000 (8 12:23 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 8 May 2015 19:24:15 +0000 (8 19:24 +0000)
tree95941d8156b43d6e79b8dd13b43d900d51187763
parent48d762d7e1520c8e628923ad7f77213a026d41e2
Get correct PLT measurement for Resource Prefetching for Mobile Web

The starting point of the PLT measurement for Resource Prefetching for Mobile Web is when the main resource request is created and sent out. Current implementation actually did not store the start time in the right data structure, leading to incorrect PLT measurement. This CL fixes this.

inflight_navigations_ stores the NavigationID. When measuring PLT, we need to use the navigation ID stored in inflight_navigations_, instead of using the newly created ones.

BUG=405690

Review URL: https://codereview.chromium.org/1133493002

Cr-Commit-Position: refs/heads/master@{#329009}
chrome/browser/net/resource_prefetch_predictor_observer.cc
chrome/browser/predictors/resource_prefetch_predictor.cc
chrome/browser/predictors/resource_prefetch_predictor.h
chrome/browser/predictors/resource_prefetch_predictor_unittest.cc