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

Issue 2064793003: Remove old requests from queue, start new requests if any, add test. (Closed)

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

Remove old requests from queue, start new requests if any, add test. When offline page requests are completed, remove them from the queue of outstanding requests, and start the next request (if any) This changelist also adds a test for the new code. BUG=610521 Committed: https://crrev.com/ec96ac8f3893d0fbea151a1750ff15df5b5f8b9f Cr-Commit-Position: refs/heads/master@{#399914}

Patch Set 1 #

Total comments: 10

Patch Set 2 : CR feedback per DewittJ and DougArnett #

Patch Set 3 : Update comment #

Total comments: 2

Patch Set 4 : Fix unit test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+103 lines, -7 lines) Patch
M components/offline_pages/background/request_coordinator.h View 1 4 chunks +15 lines, -0 lines 0 comments Download
M components/offline_pages/background/request_coordinator.cc View 1 2 4 chunks +32 lines, -6 lines 0 comments Download
M components/offline_pages/background/request_coordinator_unittest.cc View 1 2 3 4 chunks +56 lines, -1 line 0 comments Download

Messages

Total messages: 25 (11 generated)
Pete Williamson
4 years, 6 months ago (2016-06-14 15:57:58 UTC) #2
dewittj
Please make the cl description a little more understandable for sheriffs. https://codereview.chromium.org/2064793003/diff/1/components/offline_pages/background/request_coordinator.h File components/offline_pages/background/request_coordinator.h (right): ...
4 years, 6 months ago (2016-06-14 16:16:36 UTC) #4
dougarnett
https://codereview.chromium.org/2064793003/diff/1/components/offline_pages/background/request_coordinator.cc File components/offline_pages/background/request_coordinator.cc (right): https://codereview.chromium.org/2064793003/diff/1/components/offline_pages/background/request_coordinator.cc#newcode72 components/offline_pages/background/request_coordinator.cc:72: RequestQueue::UpdateRequestResult result) {} Where do we re-schedule and/or unschedule ...
4 years, 6 months ago (2016-06-14 18:12:52 UTC) #6
Pete Williamson
https://codereview.chromium.org/2064793003/diff/1/components/offline_pages/background/request_coordinator.cc File components/offline_pages/background/request_coordinator.cc (right): https://codereview.chromium.org/2064793003/diff/1/components/offline_pages/background/request_coordinator.cc#newcode72 components/offline_pages/background/request_coordinator.cc:72: RequestQueue::UpdateRequestResult result) {} On 2016/06/14 18:12:52, dougarnett wrote: > ...
4 years, 6 months ago (2016-06-14 21:03:14 UTC) #7
dougarnett
lgtm lgtm with comment to fix test return value check from StartProcessing() with other thoughts ...
4 years, 6 months ago (2016-06-14 22:53:33 UTC) #8
Pete Williamson
https://codereview.chromium.org/2064793003/diff/40001/components/offline_pages/background/request_coordinator_unittest.cc File components/offline_pages/background/request_coordinator_unittest.cc (right): https://codereview.chromium.org/2064793003/diff/40001/components/offline_pages/background/request_coordinator_unittest.cc#newcode172 components/offline_pages/background/request_coordinator_unittest.cc:172: EXPECT_FALSE(coordinator()->StartProcessing(callback)); On 2016/06/14 22:53:33, dougarnett wrote: > EXPECT_TRUE at ...
4 years, 6 months ago (2016-06-15 00:06:31 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2064793003/60001
4 years, 6 months ago (2016-06-15 00:07:55 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/81460)
4 years, 6 months ago (2016-06-15 00:38:16 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2064793003/60001
4 years, 6 months ago (2016-06-15 00:48:31 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/239161)
4 years, 6 months ago (2016-06-15 01:30:52 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2064793003/60001
4 years, 6 months ago (2016-06-15 15:24:31 UTC) #20
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 6 months ago (2016-06-15 16:16:12 UTC) #22
commit-bot: I haz the power
CQ bit was unchecked
4 years, 6 months ago (2016-06-15 16:16:20 UTC) #23
commit-bot: I haz the power
4 years, 6 months ago (2016-06-15 16:18:23 UTC) #25
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/ec96ac8f3893d0fbea151a1750ff15df5b5f8b9f
Cr-Commit-Position: refs/heads/master@{#399914}

Powered by Google App Engine
This is Rietveld 408576698