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

Issue 2113383002: More detailed implementation of the RequestPicker (Closed)

Created:
4 years, 5 months ago by Pete Williamson
Modified:
4 years, 5 months ago
Reviewers:
dougarnett, romax, fgorski
CC:
chromium-reviews, cbentzel+watch_chromium.org, romax+watch_chromium.org, tburkard+watch_chromium.org, fgorski+watch_chromium.org, dewittj+watch_chromium.org, petewil+watch_chromium.org, chili+watch_chromium.org, gavinp+prer_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

More detailed implementation of the RequestPicker BUG=610521 Committed: https://crrev.com/4c1748036810d9f4280dfcb4e53ebeec84abaadc Cr-Commit-Position: refs/heads/master@{#407281}

Patch Set 1 #

Patch Set 2 : merge fixes in the unittests #

Patch Set 3 : More detailed implementation of the RequestPicker #

Patch Set 4 : Fix tests #

Patch Set 5 : Fix time check and MeetsConditions check #

Total comments: 40

Patch Set 6 : CR fixes per DougArnett #

Total comments: 6

Patch Set 7 : second round of CR comments #

Total comments: 6

Patch Set 8 : Simplify picker logic for multiple criteria #

Total comments: 47

Patch Set 9 : FGorski feedback round 1 #

Patch Set 10 : Try a different way of checking policy to separate policy from checking. #

Total comments: 17

Patch Set 11 : More FGorski feedback changes #

Patch Set 12 : Factor request comparison more cleanly #

Patch Set 13 : Fix merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+386 lines, -64 lines) Patch
M chrome/browser/android/offline_pages/offline_page_bridge.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/android/offline_pages/prerendering_offliner_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 10 chunks +21 lines, -10 lines 0 comments Download
M components/offline_pages/background/device_conditions.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +6 lines, -0 lines 0 comments Download
M components/offline_pages/background/offliner_policy.h View 1 2 3 4 5 6 7 8 9 2 chunks +41 lines, -2 lines 0 comments Download
M components/offline_pages/background/request_coordinator.h View 1 2 3 4 5 6 7 8 3 chunks +8 lines, -1 line 0 comments Download
M components/offline_pages/background/request_coordinator.cc View 1 2 3 4 5 6 7 8 3 chunks +8 lines, -5 lines 0 comments Download
M components/offline_pages/background/request_coordinator_unittest.cc View 1 2 3 11 chunks +19 lines, -8 lines 0 comments Download
M components/offline_pages/background/request_picker.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +46 lines, -2 lines 0 comments Download
M components/offline_pages/background/request_picker.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +165 lines, -6 lines 0 comments Download
M components/offline_pages/background/request_picker_unittest.cc View 1 2 3 4 5 6 7 8 9 6 chunks +16 lines, -8 lines 0 comments Download
M components/offline_pages/background/request_queue_store_sql.cc View 2 chunks +3 lines, -1 line 0 comments Download
M components/offline_pages/background/request_queue_store_unittest.cc View 1 2 7 chunks +13 lines, -6 lines 0 comments Download
M components/offline_pages/background/request_queue_unittest.cc View 4 chunks +9 lines, -4 lines 0 comments Download
M components/offline_pages/background/save_page_request.h View 1 2 3 4 5 6 7 8 3 chunks +14 lines, -2 lines 0 comments Download
M components/offline_pages/background/save_page_request.cc View 1 2 3 4 5 6 7 8 2 chunks +10 lines, -5 lines 0 comments Download
M components/offline_pages/background/save_page_request_unittest.cc View 4 chunks +5 lines, -3 lines 0 comments Download

Messages

Total messages: 48 (24 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2113383002/1
4 years, 5 months ago (2016-07-01 22:18:58 UTC) #2
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/30372) ios-simulator-gn on ...
4 years, 5 months ago (2016-07-01 22:21:25 UTC) #4
Pete Williamson
https://codereview.chromium.org/2113383002/diff/80001/components/offline_pages/background/request_picker.cc File components/offline_pages/background/request_picker.cc (right): https://codereview.chromium.org/2113383002/diff/80001/components/offline_pages/background/request_picker.cc#newcode107 components/offline_pages/background/request_picker.cc:107: // Look at policies to decide if we prefer ...
4 years, 5 months ago (2016-07-18 17:41:06 UTC) #16
dougarnett
Some initial comments - mostly some terminology thoughts as I get my head into this ...
4 years, 5 months ago (2016-07-18 21:45:45 UTC) #21
Pete Williamson
CR feedback per DougArnett https://codereview.chromium.org/2113383002/diff/80001/components/offline_pages/background/device_conditions.h File components/offline_pages/background/device_conditions.h (right): https://codereview.chromium.org/2113383002/diff/80001/components/offline_pages/background/device_conditions.h#newcode23 components/offline_pages/background/device_conditions.h:23: DeviceConditions() On 2016/07/18 21:45:44, dougarnett ...
4 years, 5 months ago (2016-07-18 22:52:09 UTC) #22
dougarnett
https://codereview.chromium.org/2113383002/diff/80001/components/offline_pages/background/device_conditions.h File components/offline_pages/background/device_conditions.h (right): https://codereview.chromium.org/2113383002/diff/80001/components/offline_pages/background/device_conditions.h#newcode23 components/offline_pages/background/device_conditions.h:23: DeviceConditions() On 2016/07/18 22:52:09, Pete Williamson wrote: > On ...
4 years, 5 months ago (2016-07-19 00:20:44 UTC) #23
dougarnett
https://codereview.chromium.org/2113383002/diff/80001/components/offline_pages/background/request_picker.cc File components/offline_pages/background/request_picker.cc (right): https://codereview.chromium.org/2113383002/diff/80001/components/offline_pages/background/request_picker.cc#newcode107 components/offline_pages/background/request_picker.cc:107: // Look at policies to decide if we prefer ...
4 years, 5 months ago (2016-07-19 15:49:49 UTC) #24
Pete Williamson
https://codereview.chromium.org/2113383002/diff/80001/components/offline_pages/background/device_conditions.h File components/offline_pages/background/device_conditions.h (right): https://codereview.chromium.org/2113383002/diff/80001/components/offline_pages/background/device_conditions.h#newcode23 components/offline_pages/background/device_conditions.h:23: DeviceConditions() On 2016/07/19 00:20:44, dougarnett wrote: > On 2016/07/18 ...
4 years, 5 months ago (2016-07-19 19:48:09 UTC) #25
dougarnett
https://codereview.chromium.org/2113383002/diff/120001/components/offline_pages/background/request_picker.cc File components/offline_pages/background/request_picker.cc (right): https://codereview.chromium.org/2113383002/diff/120001/components/offline_pages/background/request_picker.cc#newcode12 components/offline_pages/background/request_picker.cc:12: const int kEquiavalentRequest = 0; spelling https://codereview.chromium.org/2113383002/diff/120001/components/offline_pages/background/request_picker.cc#newcode12 components/offline_pages/background/request_picker.cc:12: const ...
4 years, 5 months ago (2016-07-19 20:49:11 UTC) #26
Pete Williamson
https://codereview.chromium.org/2113383002/diff/120001/components/offline_pages/background/request_picker.cc File components/offline_pages/background/request_picker.cc (right): https://codereview.chromium.org/2113383002/diff/120001/components/offline_pages/background/request_picker.cc#newcode12 components/offline_pages/background/request_picker.cc:12: const int kEquiavalentRequest = 0; On 2016/07/19 20:49:11, dougarnett ...
4 years, 5 months ago (2016-07-19 22:35:18 UTC) #27
dougarnett
lgtm Would be good to get 2nd second of eyes sign-off on this one. If ...
4 years, 5 months ago (2016-07-19 22:45:17 UTC) #28
Pete Williamson
+FGorski - Could you please take a look?
4 years, 5 months ago (2016-07-20 00:05:47 UTC) #30
fgorski
Mostly nits, but I have some suggestions to the picker. We can chat, if you ...
4 years, 5 months ago (2016-07-20 16:23:32 UTC) #31
Pete Williamson
https://codereview.chromium.org/2113383002/diff/140001/components/offline_pages/background/device_conditions.h File components/offline_pages/background/device_conditions.h (right): https://codereview.chromium.org/2113383002/diff/140001/components/offline_pages/background/device_conditions.h#newcode29 components/offline_pages/background/device_conditions.h:29: battery_percentage_(other.battery_percentage_), On 2016/07/20 16:23:31, fgorski wrote: > nit: please ...
4 years, 5 months ago (2016-07-20 19:50:44 UTC) #32
Pete Williamson
Revamped the policy checking as suggested by FGorski to separate out policy from checking. Please ...
4 years, 5 months ago (2016-07-20 23:26:10 UTC) #33
fgorski
already looks much better. I actually was able to look inside the compare functions this ...
4 years, 5 months ago (2016-07-21 17:01:21 UTC) #34
Pete Williamson
https://codereview.chromium.org/2113383002/diff/140001/components/offline_pages/background/device_conditions.h File components/offline_pages/background/device_conditions.h (right): https://codereview.chromium.org/2113383002/diff/140001/components/offline_pages/background/device_conditions.h#newcode27 components/offline_pages/background/device_conditions.h:27: DeviceConditions(const DeviceConditions& other) On 2016/07/21 17:01:20, fgorski wrote: > ...
4 years, 5 months ago (2016-07-21 19:48:46 UTC) #35
fgorski
lgtm https://codereview.chromium.org/2113383002/diff/180001/components/offline_pages/background/request_picker.cc File components/offline_pages/background/request_picker.cc (right): https://codereview.chromium.org/2113383002/diff/180001/components/offline_pages/background/request_picker.cc#newcode151 components/offline_pages/background/request_picker.cc:151: // Check the attempt count. On 2016/07/21 19:48:45, ...
4 years, 5 months ago (2016-07-22 16:02:11 UTC) #36
Pete Williamson
https://codereview.chromium.org/2113383002/diff/180001/components/offline_pages/background/request_picker.cc File components/offline_pages/background/request_picker.cc (right): https://codereview.chromium.org/2113383002/diff/180001/components/offline_pages/background/request_picker.cc#newcode151 components/offline_pages/background/request_picker.cc:151: // Check the attempt count. On 2016/07/22 16:02:11, fgorski ...
4 years, 5 months ago (2016-07-22 16:25:53 UTC) #37
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/2113383002/220001
4 years, 5 months ago (2016-07-22 16:26:25 UTC) #40
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/109064)
4 years, 5 months ago (2016-07-22 16:43:13 UTC) #42
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/2113383002/240001
4 years, 5 months ago (2016-07-22 20:57:05 UTC) #45
commit-bot: I haz the power
Committed patchset #13 (id:240001)
4 years, 5 months ago (2016-07-22 22:24:56 UTC) #46
commit-bot: I haz the power
4 years, 5 months ago (2016-07-22 22:26:10 UTC) #48
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/4c1748036810d9f4280dfcb4e53ebeec84abaadc
Cr-Commit-Position: refs/heads/master@{#407281}

Powered by Google App Engine
This is Rietveld 408576698