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

Issue 2539263004: predictors: Take RESOURCE_TYPE_XHR into account. (Closed)

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

Description

predictors: Take RESOURCE_TYPE_XHR into account. Some useful subresources could be fetched by webpages via XMLHttpRequest. This CL adds support of this type of requests to ResourcePrefetchPredictor. BUG=631966 Committed: https://crrev.com/68b12e34f76bcd64a4764aeada8b962120b4b470 Cr-Commit-Position: refs/heads/master@{#435653}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Add test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -3 lines) Patch
M chrome/browser/predictors/resource_prefetch_predictor.cc View 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/browser/predictors/resource_prefetch_predictor_unittest.cc View 1 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (4 generated)
alexilin
4 years ago (2016-12-01 15:41:15 UTC) #2
Benoit L
https://codereview.chromium.org/2539263004/diff/1/chrome/browser/predictors/resource_prefetch_predictor.cc File chrome/browser/predictors/resource_prefetch_predictor.cc (right): https://codereview.chromium.org/2539263004/diff/1/chrome/browser/predictors/resource_prefetch_predictor.cc#newcode225 chrome/browser/predictors/resource_prefetch_predictor.cc:225: resource_type == content::RESOURCE_TYPE_XHR) { Can you add an assertion ...
4 years ago (2016-12-01 16:15:21 UTC) #3
pasko
looks good, can you please add coverage in resource_prefetch_predictor_unittest.cc?
4 years ago (2016-12-01 16:18:36 UTC) #4
alexilin
Sorry I didn't add tests at once.
4 years ago (2016-12-01 16:40:13 UTC) #5
Benoit L
On 2016/12/01 16:40:13, alexilin wrote: > Sorry I didn't add tests at once. lgtm, thanks.
4 years ago (2016-12-01 16:44:41 UTC) #6
Benoit L
On 2016/12/01 16:40:13, alexilin wrote: > Sorry I didn't add tests at once. lgtm, thanks.
4 years ago (2016-12-01 16:44:42 UTC) #7
pasko
lgtm, thank you
4 years ago (2016-12-01 16:49:14 UTC) #8
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/2539263004/20001
4 years ago (2016-12-01 16:58:43 UTC) #10
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years ago (2016-12-01 18:24:05 UTC) #12
commit-bot: I haz the power
4 years ago (2016-12-01 18:27:00 UTC) #14
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/68b12e34f76bcd64a4764aeada8b962120b4b470
Cr-Commit-Position: refs/heads/master@{#435653}

Powered by Google App Engine
This is Rietveld 408576698