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

Issue 2425873003: [Offline Pages] Add evaluation test support in RequestCoordinator. (Closed)

Created:
4 years, 2 months ago by romax
Modified:
4 years, 2 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
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Offline Pages] Add evaluation test support in RequestCoodinator. Added the function to add customized callback which would be called after an user request is completed. Also fixed the issue where the scheduler callback would not be invoked if there's a failure during the offlining, also made it have the same behavior as described in comments. Changed some tests regarding to the changes above. BUG=653708, 646947 Committed: https://crrev.com/1c1f5c1b9927576a524b1fe3476035f4d1128e79 Cr-Commit-Position: refs/heads/master@{#426115}

Patch Set 1 #

Total comments: 14

Patch Set 2 : Addressed comments. #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+166 lines, -61 lines) Patch
M components/offline_pages/background/offliner_policy.h View 1 4 chunks +10 lines, -5 lines 0 comments Download
M components/offline_pages/background/request_coordinator.h View 1 2 chunks +10 lines, -0 lines 0 comments Download
M components/offline_pages/background/request_coordinator.cc View 1 3 chunks +5 lines, -2 lines 0 comments Download
M components/offline_pages/background/request_coordinator_unittest.cc View 1 27 chunks +122 lines, -36 lines 0 comments Download
M components/offline_pages/background/request_picker_unittest.cc View 1 7 chunks +19 lines, -18 lines 3 comments Download

Dependent Patchsets:

Messages

Total messages: 20 (9 generated)
romax
Sorry for the late patch. PTAL! Thanks!
4 years, 2 months ago (2016-10-18 01:10:05 UTC) #3
dougarnett
https://codereview.chromium.org/2425873003/diff/1/components/offline_pages/background/offliner_policy.h File components/offline_pages/background/offliner_policy.h (right): https://codereview.chromium.org/2425873003/diff/1/components/offline_pages/background/offliner_policy.h#newcode25 components/offline_pages/background/offliner_policy.h:25: true, Hard to read what these bools apply to. ...
4 years, 2 months ago (2016-10-18 17:26:32 UTC) #4
Pete Williamson
https://codereview.chromium.org/2425873003/diff/1/components/offline_pages/background/offliner_policy.h File components/offline_pages/background/offliner_policy.h (right): https://codereview.chromium.org/2425873003/diff/1/components/offline_pages/background/offliner_policy.h#newcode25 components/offline_pages/background/offliner_policy.h:25: true, On 2016/10/18 17:26:32, dougarnett wrote: > Hard to ...
4 years, 2 months ago (2016-10-18 19:24:32 UTC) #5
romax
Thanks for the comments. PTAL https://chromiumcodereview.appspot.com/2425873003/diff/1/components/offline_pages/background/offliner_policy.h File components/offline_pages/background/offliner_policy.h (right): https://chromiumcodereview.appspot.com/2425873003/diff/1/components/offline_pages/background/offliner_policy.h#newcode25 components/offline_pages/background/offliner_policy.h:25: true, On 2016/10/18 19:24:32, ...
4 years, 2 months ago (2016-10-18 20:31:51 UTC) #6
Pete Williamson
lgtm
4 years, 2 months ago (2016-10-18 22:39:16 UTC) #7
dougarnett
https://chromiumcodereview.appspot.com/2425873003/diff/20001/components/offline_pages/background/request_picker_unittest.cc File components/offline_pages/background/request_picker_unittest.cc (right): https://chromiumcodereview.appspot.com/2425873003/diff/20001/components/offline_pages/background/request_picker_unittest.cc#newcode41 components/offline_pages/background/request_picker_unittest.cc:41: const int kBackgroundProcessingTimeBudgetSeconds = 170; hmm, I wonder about ...
4 years, 2 months ago (2016-10-19 00:58:58 UTC) #10
romax
https://chromiumcodereview.appspot.com/2425873003/diff/20001/components/offline_pages/background/request_picker_unittest.cc File components/offline_pages/background/request_picker_unittest.cc (right): https://chromiumcodereview.appspot.com/2425873003/diff/20001/components/offline_pages/background/request_picker_unittest.cc#newcode41 components/offline_pages/background/request_picker_unittest.cc:41: const int kBackgroundProcessingTimeBudgetSeconds = 170; On 2016/10/19 00:58:58, dougarnett ...
4 years, 2 months ago (2016-10-19 01:03:21 UTC) #11
dougarnett
lgtm https://chromiumcodereview.appspot.com/2425873003/diff/20001/components/offline_pages/background/request_picker_unittest.cc File components/offline_pages/background/request_picker_unittest.cc (right): https://chromiumcodereview.appspot.com/2425873003/diff/20001/components/offline_pages/background/request_picker_unittest.cc#newcode41 components/offline_pages/background/request_picker_unittest.cc:41: const int kBackgroundProcessingTimeBudgetSeconds = 170; On 2016/10/19 01:03:21, ...
4 years, 2 months ago (2016-10-19 01:36:39 UTC) #14
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/2425873003/20001
4 years, 2 months ago (2016-10-19 01:40:39 UTC) #16
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 2 months ago (2016-10-19 01:50:13 UTC) #18
commit-bot: I haz the power
4 years, 2 months ago (2016-10-21 13:05:45 UTC) #20
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/1c1f5c1b9927576a524b1fe3476035f4d1128e79
Cr-Commit-Position: refs/heads/master@{#426115}

Powered by Google App Engine
This is Rietveld 408576698