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

Issue 2716373002: predictors: Call StopPrefetching with an url before redirect. (Closed)

Created:
3 years, 9 months ago by alexilin
Modified:
3 years, 9 months ago
Reviewers:
Benoit L
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

predictors: Call StopPrefetching with an url before redirect. It was wrong to use main_frame_url as a parameter for StopPrefetching because if we have a redirect, StartPrefetching is called with initial_url and prefetcher manager knows nothing about further redirects. The easiest way to fix it is to keep using initial_url in all calls to prefetcher manager. Additionaly, this CL adds a report to prefetch duration histogram in case if we evict inflight prefetch by timeout. BUG=631966 Review-Url: https://codereview.chromium.org/2716373002 Cr-Commit-Position: refs/heads/master@{#453605} Committed: https://chromium.googlesource.com/chromium/src/+/1e620aa2262f96a9cad722d7e5a9266a218ae279

Patch Set 1 #

Total comments: 7

Patch Set 2 : Fix nit #2. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+115 lines, -12 lines) Patch
M chrome/browser/predictors/resource_prefetch_predictor.h View 1 chunk +6 lines, -2 lines 0 comments Download
M chrome/browser/predictors/resource_prefetch_predictor.cc View 1 6 chunks +26 lines, -5 lines 0 comments Download
M chrome/browser/predictors/resource_prefetch_predictor_browsertest.cc View 1 5 chunks +83 lines, -5 lines 0 comments Download

Messages

Total messages: 11 (5 generated)
alexilin
lizeb, please review this fix! I mentioned this bug in https://codereview.chromium.org/2719533002 https://codereview.chromium.org/2716373002/diff/1/chrome/browser/predictors/resource_prefetch_predictor.cc File chrome/browser/predictors/resource_prefetch_predictor.cc (left): ...
3 years, 9 months ago (2017-02-27 15:53:36 UTC) #2
Benoit L
lgtm https://codereview.chromium.org/2716373002/diff/1/chrome/browser/predictors/resource_prefetch_predictor.cc File chrome/browser/predictors/resource_prefetch_predictor.cc (right): https://codereview.chromium.org/2716373002/diff/1/chrome/browser/predictors/resource_prefetch_predictor.cc#newcode692 chrome/browser/predictors/resource_prefetch_predictor.cc:692: StopPrefetching(response.navigation_id.main_frame_url); On 2017/02/27 15:53:36, alexilin wrote: > I'm ...
3 years, 9 months ago (2017-02-27 17:31:19 UTC) #3
alexilin
https://codereview.chromium.org/2716373002/diff/1/chrome/browser/predictors/resource_prefetch_predictor.cc File chrome/browser/predictors/resource_prefetch_predictor.cc (right): https://codereview.chromium.org/2716373002/diff/1/chrome/browser/predictors/resource_prefetch_predictor.cc#newcode692 chrome/browser/predictors/resource_prefetch_predictor.cc:692: StopPrefetching(response.navigation_id.main_frame_url); On 2017/02/27 17:31:19, Benoit L wrote: > On ...
3 years, 9 months ago (2017-02-27 18:15:01 UTC) #4
Benoit L
https://codereview.chromium.org/2716373002/diff/1/chrome/browser/predictors/resource_prefetch_predictor.cc File chrome/browser/predictors/resource_prefetch_predictor.cc (right): https://codereview.chromium.org/2716373002/diff/1/chrome/browser/predictors/resource_prefetch_predictor.cc#newcode692 chrome/browser/predictors/resource_prefetch_predictor.cc:692: StopPrefetching(response.navigation_id.main_frame_url); On 2017/02/27 18:15:01, alexilin wrote: > On 2017/02/27 ...
3 years, 9 months ago (2017-02-28 14:26:30 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2716373002/20001
3 years, 9 months ago (2017-02-28 14:45:18 UTC) #8
commit-bot: I haz the power
3 years, 9 months ago (2017-02-28 15:29:31 UTC) #11
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/1e620aa2262f96a9cad722d7e5a9...

Powered by Google App Engine
This is Rietveld 408576698