DescriptionFix prerender histograms for multiple prerender case.
Unfortunately, the prerender histograms mechanism for determining origin was basically a global variable; when multiple prerenders can be in flight at the same time, this doesn't work so well.
To fix this, track the origin of prerenders in the PrerenderData and in the structure keeping track of prerendered web_contents, and pass explicit origins in for histogram recording.
The "wash" determination still uses the window, which is the same as the TTL, and so it's passed in at initialization rather than being another constant in prerender_histograms.cc.
BUG=None
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=162418
Patch Set 1 #Patch Set 2 : whitespace fixes #Patch Set 3 : remediate to self review... #Patch Set 4 : ... whitespace #
Total comments: 11
Patch Set 5 : update the rite cl #
Total comments: 11
Patch Set 6 : ... partial remediation (stay tuned...) #
Total comments: 1
Patch Set 7 : ... remediation to tburkard and mmenke review #Patch Set 8 : fix windows build #
Total comments: 2
Patch Set 9 : rebase #Patch Set 10 : ... fix window logic #
Total comments: 15
Patch Set 11 : further remediation #
Total comments: 17
Patch Set 12 : remediate to mmenke review, add tests #
Total comments: 4
Patch Set 13 : ... rebase to trunk #Patch Set 14 : ... new tests, indent. #Messages
Total messages: 24 (0 generated)
|