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

Issue 2078113002: Don't start a second pre-render if one is in progress. (Closed)

Created:
4 years, 6 months ago by Pete Williamson
Modified:
4 years, 6 months ago
Reviewers:
dougarnett, fgorski
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

Don't start a second pre-render if one is in progress. The prerenderer can only support one prerender attempt at a time. If we are asked to start another, return false instead of starting one. In normal operation, we will take a request off the queue when prerendering finishes anyway. BUG=610521 Committed: https://crrev.com/0a866ec6eee17369a8fe3f565c55937fd3bf985b Cr-Commit-Position: refs/heads/master@{#401461}

Patch Set 1 #

Total comments: 16

Patch Set 2 : CR fixes per DougArnett, Chili, and FGorski #

Total comments: 2

Patch Set 3 : fix comment #

Total comments: 2

Patch Set 4 : Redo unit test to use StartProcessing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -16 lines) Patch
M components/offline_pages/background/request_coordinator.h View 1 2 2 chunks +8 lines, -0 lines 0 comments Download
M components/offline_pages/background/request_coordinator.cc View 1 6 chunks +11 lines, -11 lines 0 comments Download
M components/offline_pages/background/request_coordinator_unittest.cc View 1 2 3 5 chunks +60 lines, -5 lines 0 comments Download

Messages

Total messages: 26 (8 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2078113002/1
4 years, 6 months ago (2016-06-18 01:04:11 UTC) #2
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-18 01:43:57 UTC) #4
Pete Williamson
4 years, 6 months ago (2016-06-20 17:57:04 UTC) #6
dougarnett
Couple ideas to avoid more friend dependencies on the unittests class. https://codereview.chromium.org/2078113002/diff/1/components/offline_pages/background/request_coordinator_unittest.cc File components/offline_pages/background/request_coordinator_unittest.cc (right): ...
4 years, 6 months ago (2016-06-20 18:30:08 UTC) #7
chili
https://codereview.chromium.org/2078113002/diff/1/components/offline_pages/background/request_coordinator.h File components/offline_pages/background/request_coordinator.h (right): https://codereview.chromium.org/2078113002/diff/1/components/offline_pages/background/request_coordinator.h#newcode99 components/offline_pages/background/request_coordinator.h:99: bool request_in_progress_; though probably annoying to change - can ...
4 years, 6 months ago (2016-06-20 18:38:34 UTC) #8
fgorski
mostly nits on my end. https://codereview.chromium.org/2078113002/diff/1/components/offline_pages/background/request_coordinator.cc File components/offline_pages/background/request_coordinator.cc (right): https://codereview.chromium.org/2078113002/diff/1/components/offline_pages/background/request_coordinator.cc#newcode89 components/offline_pages/background/request_coordinator.cc:89: if (request_in_progress_) { nit: ...
4 years, 6 months ago (2016-06-20 20:24:07 UTC) #9
Pete Williamson
https://codereview.chromium.org/2078113002/diff/1/components/offline_pages/background/request_coordinator.cc File components/offline_pages/background/request_coordinator.cc (right): https://codereview.chromium.org/2078113002/diff/1/components/offline_pages/background/request_coordinator.cc#newcode89 components/offline_pages/background/request_coordinator.cc:89: if (request_in_progress_) { On 2016/06/20 20:24:07, fgorski wrote: > ...
4 years, 6 months ago (2016-06-21 17:55:25 UTC) #10
Pete Williamson
https://codereview.chromium.org/2078113002/diff/1/components/offline_pages/background/request_coordinator.cc File components/offline_pages/background/request_coordinator.cc (right): https://codereview.chromium.org/2078113002/diff/1/components/offline_pages/background/request_coordinator.cc#newcode140 components/offline_pages/background/request_coordinator.cc:140: request_in_progress_ = false; On 2016/06/21 17:55:25, Pete Williamson wrote: ...
4 years, 6 months ago (2016-06-21 17:57:46 UTC) #11
fgorski
lgtm mod comment. https://codereview.chromium.org/2078113002/diff/20001/components/offline_pages/background/request_coordinator.h File components/offline_pages/background/request_coordinator.h (right): https://codereview.chromium.org/2078113002/diff/20001/components/offline_pages/background/request_coordinator.h#newcode103 components/offline_pages/background/request_coordinator.h:103: bool is_busy_; please add documentation here. ...
4 years, 6 months ago (2016-06-21 18:11:18 UTC) #12
Pete Williamson
https://codereview.chromium.org/2078113002/diff/20001/components/offline_pages/background/request_coordinator.h File components/offline_pages/background/request_coordinator.h (right): https://codereview.chromium.org/2078113002/diff/20001/components/offline_pages/background/request_coordinator.h#newcode103 components/offline_pages/background/request_coordinator.h:103: bool is_busy_; On 2016/06/21 18:11:18, fgorski wrote: > please ...
4 years, 6 months ago (2016-06-21 18:33:56 UTC) #13
dougarnett
I tried to explain my test improvement idea better. https://codereview.chromium.org/2078113002/diff/1/components/offline_pages/background/request_coordinator_unittest.cc File components/offline_pages/background/request_coordinator_unittest.cc (right): https://codereview.chromium.org/2078113002/diff/1/components/offline_pages/background/request_coordinator_unittest.cc#newcode192 components/offline_pages/background/request_coordinator_unittest.cc:192: ...
4 years, 6 months ago (2016-06-22 17:25:47 UTC) #14
Pete Williamson
https://codereview.chromium.org/2078113002/diff/1/components/offline_pages/background/request_coordinator_unittest.cc File components/offline_pages/background/request_coordinator_unittest.cc (right): https://codereview.chromium.org/2078113002/diff/1/components/offline_pages/background/request_coordinator_unittest.cc#newcode192 components/offline_pages/background/request_coordinator_unittest.cc:192: SendRequestToOffliner(request); On 2016/06/22 17:25:47, dougarnett wrote: > On 2016/06/21 ...
4 years, 6 months ago (2016-06-22 22:32:27 UTC) #15
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2078113002/60001
4 years, 6 months ago (2016-06-22 22:33:24 UTC) #17
dougarnett
lgtm https://codereview.chromium.org/2078113002/diff/1/components/offline_pages/background/request_coordinator_unittest.cc File components/offline_pages/background/request_coordinator_unittest.cc (right): https://codereview.chromium.org/2078113002/diff/1/components/offline_pages/background/request_coordinator_unittest.cc#newcode192 components/offline_pages/background/request_coordinator_unittest.cc:192: SendRequestToOffliner(request); On 2016/06/22 22:32:26, Pete Williamson wrote: > ...
4 years, 6 months ago (2016-06-22 23:18:36 UTC) #18
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-22 23:32:28 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2078113002/60001
4 years, 6 months ago (2016-06-22 23:33:25 UTC) #23
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 6 months ago (2016-06-22 23:38:57 UTC) #24
commit-bot: I haz the power
4 years, 6 months ago (2016-06-22 23:43:30 UTC) #26
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/0a866ec6eee17369a8fe3f565c55937fd3bf985b
Cr-Commit-Position: refs/heads/master@{#401461}

Powered by Google App Engine
This is Rietveld 408576698