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

Issue 2269173003: Adjust scheduling for non-user requested items (Closed)

Created:
4 years, 4 months ago by Pete Williamson
Modified:
4 years, 3 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

Adjust scheduling for non-user requested items BUG=610521 Committed: https://crrev.com/da631f82220aa205ef6b6a7ef571351a077e965b Cr-Commit-Position: refs/heads/master@{#416105}

Patch Set 1 #

Total comments: 16

Patch Set 2 : Fix CR feedback per FGorski and DougArnett #

Patch Set 3 : Tests written and working. #

Total comments: 12

Patch Set 4 : CR feedback per DougArnett #

Total comments: 4

Patch Set 5 : More CR feedback per DougArnett #

Patch Set 6 : FGorski CR feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+194 lines, -78 lines) Patch
M components/offline_pages/background/offliner_policy.h View 1 2 3 4 5 3 chunks +14 lines, -19 lines 0 comments Download
M components/offline_pages/background/request_coordinator.h View 1 2 3 4 5 chunks +20 lines, -4 lines 0 comments Download
M components/offline_pages/background/request_coordinator.cc View 1 2 3 8 chunks +48 lines, -17 lines 0 comments Download
M components/offline_pages/background/request_coordinator_unittest.cc View 1 2 3 3 chunks +71 lines, -1 line 0 comments Download
M components/offline_pages/background/request_picker.h View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M components/offline_pages/background/request_picker.cc View 1 2 3 4 5 5 chunks +21 lines, -18 lines 0 comments Download
M components/offline_pages/background/request_picker_unittest.cc View 1 2 3 16 chunks +18 lines, -17 lines 0 comments Download

Messages

Total messages: 18 (7 generated)
fgorski
hey, overall approach looks good. https://codereview.chromium.org/2269173003/diff/1/components/offline_pages/background/request_coordinator.cc File components/offline_pages/background/request_coordinator.cc (right): https://codereview.chromium.org/2269173003/diff/1/components/offline_pages/background/request_coordinator.cc#newcode279 components/offline_pages/background/request_coordinator.cc:279: if (non_user_requested_tasks_remaining) { nit: ...
4 years, 4 months ago (2016-08-24 16:07:04 UTC) #2
dougarnett
https://codereview.chromium.org/2269173003/diff/1/components/offline_pages/background/request_coordinator.cc File components/offline_pages/background/request_coordinator.cc (right): https://codereview.chromium.org/2269173003/diff/1/components/offline_pages/background/request_coordinator.cc#newcode274 components/offline_pages/background/request_coordinator.cc:274: void RequestCoordinator::RequestQueueEmpty( RequestNotPicked? https://codereview.chromium.org/2269173003/diff/1/components/offline_pages/background/request_coordinator.cc#newcode280 components/offline_pages/background/request_coordinator.cc:280: scheduler_->Schedule(GetTriggerConditions(kNonUserRequest)); nit - harder ...
4 years, 4 months ago (2016-08-24 17:32:01 UTC) #4
Pete Williamson
All comments are addressed, and unit tests are added, but we will not commit this ...
4 years, 4 months ago (2016-08-25 00:00:58 UTC) #5
dougarnett
https://codereview.chromium.org/2269173003/diff/40001/components/offline_pages/background/offliner_policy.h File components/offline_pages/background/offliner_policy.h (right): https://codereview.chromium.org/2269173003/diff/40001/components/offline_pages/background/offliner_policy.h#newcode88 components/offline_pages/background/offliner_policy.h:88: int BatteryPercentageRequiredForNonUserRequestedPage() const { return 25; } delete this ...
4 years, 3 months ago (2016-08-29 15:47:23 UTC) #6
Pete Williamson
https://codereview.chromium.org/2269173003/diff/40001/components/offline_pages/background/offliner_policy.h File components/offline_pages/background/offliner_policy.h (right): https://codereview.chromium.org/2269173003/diff/40001/components/offline_pages/background/offliner_policy.h#newcode88 components/offline_pages/background/offliner_policy.h:88: int BatteryPercentageRequiredForNonUserRequestedPage() const { return 25; } On 2016/08/29 ...
4 years, 3 months ago (2016-09-01 00:10:31 UTC) #7
dougarnett
lgtm with comments https://codereview.chromium.org/2269173003/diff/40001/components/offline_pages/background/request_coordinator.h File components/offline_pages/background/request_coordinator.h (right): https://codereview.chromium.org/2269173003/diff/40001/components/offline_pages/background/request_coordinator.h#newcode199 components/offline_pages/background/request_coordinator.h:199: void RequestNotPicked(bool non_user_requested_tasks_remaining); On 2016/09/01 00:10:31, ...
4 years, 3 months ago (2016-09-01 18:24:13 UTC) #8
Pete Williamson
https://codereview.chromium.org/2269173003/diff/40001/components/offline_pages/background/request_coordinator.h File components/offline_pages/background/request_coordinator.h (right): https://codereview.chromium.org/2269173003/diff/40001/components/offline_pages/background/request_coordinator.h#newcode199 components/offline_pages/background/request_coordinator.h:199: void RequestNotPicked(bool non_user_requested_tasks_remaining); On 2016/09/01 18:24:13, dougarnett wrote: > ...
4 years, 3 months ago (2016-09-01 21:56:08 UTC) #9
dougarnett
lgtm
4 years, 3 months ago (2016-09-01 22:09:23 UTC) #12
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/2269173003/100001
4 years, 3 months ago (2016-09-01 22:15:12 UTC) #15
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 3 months ago (2016-09-01 23:01:01 UTC) #16
commit-bot: I haz the power
4 years, 3 months ago (2016-09-01 23:03:41 UTC) #18
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/da631f82220aa205ef6b6a7ef571351a077e965b
Cr-Commit-Position: refs/heads/master@{#416105}

Powered by Google App Engine
This is Rietveld 408576698