summaryrefslogtreecommitdiffstats
path: root/chrome/browser/net/resource_prefetch_predictor_observer.cc
diff options
context:
space:
mode:
authorzhenw <zhenw@chromium.org>2015-05-08 12:23:39 -0700
committerCommit bot <commit-bot@chromium.org>2015-05-08 19:24:15 +0000
commit02bf16eb1cd50ea179cbfb4e63430773fb18d93f (patch)
tree95941d8156b43d6e79b8dd13b43d900d51187763 /chrome/browser/net/resource_prefetch_predictor_observer.cc
parent48d762d7e1520c8e628923ad7f77213a026d41e2 (diff)
downloadchromium_src-02bf16eb1cd50ea179cbfb4e63430773fb18d93f.zip
chromium_src-02bf16eb1cd50ea179cbfb4e63430773fb18d93f.tar.gz
chromium_src-02bf16eb1cd50ea179cbfb4e63430773fb18d93f.tar.bz2
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}
Diffstat (limited to 'chrome/browser/net/resource_prefetch_predictor_observer.cc')
-rw-r--r--chrome/browser/net/resource_prefetch_predictor_observer.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/chrome/browser/net/resource_prefetch_predictor_observer.cc b/chrome/browser/net/resource_prefetch_predictor_observer.cc
index 5a3f4a1..81d9b07 100644
--- a/chrome/browser/net/resource_prefetch_predictor_observer.cc
+++ b/chrome/browser/net/resource_prefetch_predictor_observer.cc
@@ -118,6 +118,7 @@ void ResourcePrefetchPredictorObserver::OnRequestStarted(
summary.navigation_id.render_process_id = child_id;
summary.navigation_id.render_frame_id = frame_id;
summary.navigation_id.main_frame_url = request->first_party_for_cookies();
+ summary.navigation_id.creation_time = request->creation_time();
summary.resource_url = request->original_url();
summary.resource_type = resource_type;