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

Issue 2196293002: Skips processing more SavePageLater requests in current processing window when one completes unsucc… (Closed)

Created:
4 years, 4 months ago by dougarnett
Modified:
4 years, 4 months ago
CC:
chromium-reviews, romax+watch_chromium.org, fgorski+watch_chromium.org, dewittj+watch_chromium.org, petewil+watch_chromium.org, chili+watch_chromium.org, dimich+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Skips processing more SavePageLater requests in current processing window when one completes unsuccessfully. Ideally, we would consider processing another request in the same processing window for certain types of page-specific failures (follow-on work) but the default needs to be more conservative in case we are seeing system resource related failures/cancels. BUG=632119 Committed: https://crrev.com/e91a689c5f795a9c7f7d472d75c970d237897e5c Cr-Commit-Position: refs/heads/master@{#409554}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Allow processing to continue for some cases with TODO to split PrerenderingFailed #

Total comments: 7

Patch Set 3 : Makes targeted status codes more explicit #

Patch Set 4 : DCHECK in default case #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -12 lines) Patch
M components/offline_pages/background/request_coordinator.cc View 1 2 3 1 chunk +22 lines, -1 line 2 comments Download
M components/offline_pages/background/request_coordinator_unittest.cc View 1 4 chunks +20 lines, -11 lines 0 comments Download

Messages

Total messages: 35 (20 generated)
dougarnett
This is simple fix for now. It will be more involved to support continuing processing ...
4 years, 4 months ago (2016-08-01 15:48:03 UTC) #4
Pete Williamson
https://codereview.chromium.org/2196293002/diff/1/components/offline_pages/background/request_coordinator.cc File components/offline_pages/background/request_coordinator.cc (right): https://codereview.chromium.org/2196293002/diff/1/components/offline_pages/background/request_coordinator.cc#newcode237 components/offline_pages/background/request_coordinator.cc:237: if (status == Offliner::RequestStatus::SAVED) { Let's fix this right ...
4 years, 4 months ago (2016-08-01 19:56:27 UTC) #7
dougarnett
On 2016/08/01 19:56:27, Pete Williamson wrote: > https://codereview.chromium.org/2196293002/diff/1/components/offline_pages/background/request_coordinator.cc > File components/offline_pages/background/request_coordinator.cc (right): > > https://codereview.chromium.org/2196293002/diff/1/components/offline_pages/background/request_coordinator.cc#newcode237 ...
4 years, 4 months ago (2016-08-01 20:18:01 UTC) #8
Pete Williamson
On 2016/08/01 20:18:01, dougarnett wrote: > On 2016/08/01 19:56:27, Pete Williamson wrote: > > > ...
4 years, 4 months ago (2016-08-01 20:41:27 UTC) #9
Dmitry Titov
Nice patch. I think in general it makes sense to simplify the processing for now ...
4 years, 4 months ago (2016-08-01 21:18:49 UTC) #10
dougarnett
Allow processing for some codes now with splitting PrenderingFailed still being a TODO.
4 years, 4 months ago (2016-08-02 22:05:50 UTC) #13
Pete Williamson
https://codereview.chromium.org/2196293002/diff/1/components/offline_pages/background/request_coordinator_unittest.cc File components/offline_pages/background/request_coordinator_unittest.cc (right): https://codereview.chromium.org/2196293002/diff/1/components/offline_pages/background/request_coordinator_unittest.cc#newcode409 components/offline_pages/background/request_coordinator_unittest.cc:409: TEST_F(RequestCoordinatorTest, OfflinerDoneRequestCanceled) { Why are we removing this test? ...
4 years, 4 months ago (2016-08-02 22:20:01 UTC) #14
fgorski
drive-by https://codereview.chromium.org/2196293002/diff/20001/components/offline_pages/background/request_coordinator.cc File components/offline_pages/background/request_coordinator.cc (right): https://codereview.chromium.org/2196293002/diff/20001/components/offline_pages/background/request_coordinator.cc#newcode237 components/offline_pages/background/request_coordinator.cc:237: case Offliner::RequestStatus::SAVED: It is a bit worrying that ...
4 years, 4 months ago (2016-08-03 03:40:05 UTC) #18
dougarnett
https://codereview.chromium.org/2196293002/diff/1/components/offline_pages/background/request_coordinator_unittest.cc File components/offline_pages/background/request_coordinator_unittest.cc (right): https://codereview.chromium.org/2196293002/diff/1/components/offline_pages/background/request_coordinator_unittest.cc#newcode409 components/offline_pages/background/request_coordinator_unittest.cc:409: TEST_F(RequestCoordinatorTest, OfflinerDoneRequestCanceled) { On 2016/08/02 22:20:00, Pete Williamson wrote: ...
4 years, 4 months ago (2016-08-03 15:33:26 UTC) #25
fgorski
lgtm with a comment https://codereview.chromium.org/2196293002/diff/20001/components/offline_pages/background/request_coordinator.cc File components/offline_pages/background/request_coordinator.cc (right): https://codereview.chromium.org/2196293002/diff/20001/components/offline_pages/background/request_coordinator.cc#newcode237 components/offline_pages/background/request_coordinator.cc:237: case Offliner::RequestStatus::SAVED: On 2016/08/03 15:33:26, ...
4 years, 4 months ago (2016-08-03 16:18:59 UTC) #28
dougarnett
https://codereview.chromium.org/2196293002/diff/60001/components/offline_pages/background/request_coordinator.cc File components/offline_pages/background/request_coordinator.cc (right): https://codereview.chromium.org/2196293002/diff/60001/components/offline_pages/background/request_coordinator.cc#newcode244 components/offline_pages/background/request_coordinator.cc:244: case Offliner::RequestStatus::FOREGROUND_CANCELED: On 2016/08/03 16:18:59, fgorski wrote: > I ...
4 years, 4 months ago (2016-08-03 16:44:08 UTC) #29
Pete Williamson
lgtm
4 years, 4 months ago (2016-08-03 17:06:05 UTC) #30
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/2196293002/60001
4 years, 4 months ago (2016-08-03 17:16:13 UTC) #32
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 4 months ago (2016-08-03 17:20:45 UTC) #33
commit-bot: I haz the power
4 years, 4 months ago (2016-08-03 17:23:22 UTC) #35
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/e91a689c5f795a9c7f7d472d75c970d237897e5c
Cr-Commit-Position: refs/heads/master@{#409554}

Powered by Google App Engine
This is Rietveld 408576698