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

Issue 1859023002: Fix PrecacheFetcher behavior when reaching max_bytes. (Closed)

Created:
4 years, 8 months ago by twifkak
Modified:
4 years, 8 months ago
Reviewers:
bengr
CC:
chromium-reviews, wifiprefetch-reviews_google.com
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix PrecacheFetcher behavior when reaching max_bytes. 1. Report PercentCompleted properly, instead of as 100%. 2. Load manifests in the order that they were passed in starting_hosts (that is, by number of visits descending). BUG=309216 Committed: https://crrev.com/c595787f571c3345e44ebc80181e6280be2f2a7f Cr-Commit-Position: refs/heads/master@{#386209}

Patch Set 1 #

Patch Set 2 : Fix PrecacheManagerTest. #

Patch Set 3 : Rebase. #

Total comments: 5

Patch Set 4 : Extract AppendManifestURLIfNew(). #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -22 lines) Patch
M components/precache/content/precache_manager_unittest.cc View 1 3 chunks +3 lines, -0 lines 0 comments Download
M components/precache/core/precache_fetcher.cc View 1 2 3 9 chunks +27 lines, -14 lines 0 comments Download
M components/precache/core/precache_fetcher_unittest.cc View 1 2 5 chunks +8 lines, -8 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 12 (3 generated)
twifkak
4 years, 8 months ago (2016-04-05 05:10:38 UTC) #2
jamartin
You may need to sync to HEAD and check the interaction with the parallel fetches.
4 years, 8 months ago (2016-04-05 13:53:36 UTC) #3
twifkak
On 2016/04/05 13:53:36, jamartin1 wrote: > You may need to sync to HEAD and check ...
4 years, 8 months ago (2016-04-05 23:02:39 UTC) #4
bengr
https://codereview.chromium.org/1859023002/diff/40001/components/precache/core/precache_fetcher.cc File components/precache/core/precache_fetcher.cc (right): https://codereview.chromium.org/1859023002/diff/40001/components/precache/core/precache_fetcher.cc#newcode359 components/precache/core/precache_fetcher.cc:359: precache_delegate_->OnDone(); You might want to also clear the lists, ...
4 years, 8 months ago (2016-04-08 18:24:35 UTC) #5
twifkak
https://codereview.chromium.org/1859023002/diff/40001/components/precache/core/precache_fetcher.cc File components/precache/core/precache_fetcher.cc (right): https://codereview.chromium.org/1859023002/diff/40001/components/precache/core/precache_fetcher.cc#newcode359 components/precache/core/precache_fetcher.cc:359: precache_delegate_->OnDone(); On 2016/04/08 18:24:35, bengr wrote: > You might ...
4 years, 8 months ago (2016-04-08 19:09:05 UTC) #6
bengr
lgtm https://codereview.chromium.org/1859023002/diff/40001/components/precache/core/precache_fetcher.cc File components/precache/core/precache_fetcher.cc (right): https://codereview.chromium.org/1859023002/diff/40001/components/precache/core/precache_fetcher.cc#newcode359 components/precache/core/precache_fetcher.cc:359: precache_delegate_->OnDone(); On 2016/04/08 19:09:05, twifkak wrote: > On ...
4 years, 8 months ago (2016-04-08 21:25:48 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1859023002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1859023002/60001
4 years, 8 months ago (2016-04-08 21:29:53 UTC) #9
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 8 months ago (2016-04-08 21:35:26 UTC) #10
commit-bot: I haz the power
4 years, 8 months ago (2016-04-08 21:36:40 UTC) #12
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/c595787f571c3345e44ebc80181e6280be2f2a7f
Cr-Commit-Position: refs/heads/master@{#386209}

Powered by Google App Engine
This is Rietveld 408576698