Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(382)

Issue 2914703002: [Offline Prefetch] Backoff support for PrefetchBackgroundTask (Closed)

Created:
3 years, 6 months ago by jianli
Modified:
3 years, 6 months ago
CC:
chromium-reviews, dewittj+watch_chromium.org, fgorski+watch_chromium.org, romax+watch_chromium.org, petewil+watch_chromium.org, chili+watch_chromium.org, agrieve+watch_chromium.org, dimich+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[Offline Prefetch] Backoff support for PrefetchBackgroundTask Make PrefetchBackgroundTask support exponential backoff which is saved to prefs store. BUG=727905 TEST=new tests Review-Url: https://codereview.chromium.org/2914703002 Cr-Commit-Position: refs/heads/master@{#477553} Committed: https://chromium.googlesource.com/chromium/src/+/ac940cb6160ade6899f326ddde2d180b14e02f4f

Patch Set 1 #

Patch Set 2 : Fix trybots #

Total comments: 6

Patch Set 3 : Address feedback #

Total comments: 6

Patch Set 4 : Rebase + fix trybots #

Patch Set 5 : Address more feedback #

Total comments: 4

Patch Set 6 : Fix compile + address more feedback #

Total comments: 3

Patch Set 7 : Address feedback from nyquist #

Patch Set 8 : Add more test cases #

Patch Set 9 : Fix trybots #

Patch Set 10 : Rebase #

Patch Set 11 : Fix test #

Patch Set 12 : Fix test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+522 lines, -185 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/offlinepages/prefetch/PrefetchBackgroundTask.java View 1 2 3 4 6 chunks +36 lines, -6 lines 0 comments Download
M chrome/android/java_sources.gni View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -1 line 0 comments Download
A chrome/android/javatests/src/org/chromium/chrome/browser/offlinepages/prefetch/PrefetchBackgroundTaskTest.java View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +296 lines, -0 lines 0 comments Download
D chrome/android/junit/src/org/chromium/chrome/browser/offlinepages/prefetch/PrefetchBackgroundTaskTest.java View 1 chunk +0 lines, -146 lines 0 comments Download
A + chrome/android/junit/src/org/chromium/chrome/browser/offlinepages/prefetch/PrefetchBackgroundTaskUnitTest.java View 3 chunks +11 lines, -4 lines 0 comments Download
M chrome/browser/android/offline_pages/prefetch/prefetch_background_task.h View 1 2 3 4 3 chunks +29 lines, -5 lines 0 comments Download
M chrome/browser/android/offline_pages/prefetch/prefetch_background_task.cc View 1 2 3 4 5 6 7 8 9 3 chunks +83 lines, -10 lines 0 comments Download
M chrome/browser/prefs/browser_prefs.cc View 1 2 3 3 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/offline/offline_internals_ui_message_handler.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/BUILD.gn View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/DEPS View 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/pref_names.h View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M components/background_task_scheduler/android/java/src/org/chromium/components/background_task_scheduler/BackgroundTaskScheduler.java View 1 2 3 4 5 6 2 chunks +4 lines, -1 line 0 comments Download
M components/background_task_scheduler/android/java/src/org/chromium/components/background_task_scheduler/BackgroundTaskSchedulerDelegate.java View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M components/offline_pages/core/prefetch/prefetch_dispatcher.h View 1 2 3 4 5 6 7 8 9 2 chunks +7 lines, -4 lines 0 comments Download
M components/offline_pages/core/prefetch/prefetch_dispatcher_impl.h View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -1 line 0 comments Download
M components/offline_pages/core/prefetch/prefetch_dispatcher_impl.cc View 1 2 3 4 5 6 7 8 9 2 chunks +25 lines, -3 lines 0 comments Download
M components/offline_pages/core/prefetch/suggested_articles_observer_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 55 (39 generated)
jianli
3 years, 6 months ago (2017-05-30 21:48:59 UTC) #3
dewittj
https://codereview.chromium.org/2914703002/diff/20001/chrome/browser/android/offline_pages/prefetch/prefetch_background_task.cc File chrome/browser/android/offline_pages/prefetch/prefetch_background_task.cc (right): https://codereview.chromium.org/2914703002/diff/20001/chrome/browser/android/offline_pages/prefetch/prefetch_background_task.cc#newcode45 chrome/browser/android/offline_pages/prefetch/prefetch_background_task.cc:45: -1, Is "discard" even relevant to us? Can you ...
3 years, 6 months ago (2017-05-31 21:33:34 UTC) #11
jianli
https://codereview.chromium.org/2914703002/diff/20001/chrome/browser/android/offline_pages/prefetch/prefetch_background_task.cc File chrome/browser/android/offline_pages/prefetch/prefetch_background_task.cc (right): https://codereview.chromium.org/2914703002/diff/20001/chrome/browser/android/offline_pages/prefetch/prefetch_background_task.cc#newcode45 chrome/browser/android/offline_pages/prefetch/prefetch_background_task.cc:45: -1, On 2017/05/31 21:33:33, dewittj wrote: > Is "discard" ...
3 years, 6 months ago (2017-06-01 00:10:00 UTC) #12
dewittj
lgtm https://codereview.chromium.org/2914703002/diff/40001/chrome/browser/android/offline_pages/prefetch/prefetch_background_task.cc File chrome/browser/android/offline_pages/prefetch/prefetch_background_task.cc (right): https://codereview.chromium.org/2914703002/diff/40001/chrome/browser/android/offline_pages/prefetch/prefetch_background_task.cc#newcode120 chrome/browser/android/offline_pages/prefetch/prefetch_background_task.cc:120: Schedule(0); Should we always Schedule(0) instead of sometimes ...
3 years, 6 months ago (2017-06-01 00:22:27 UTC) #13
jianli
https://codereview.chromium.org/2914703002/diff/40001/chrome/browser/android/offline_pages/prefetch/prefetch_background_task.cc File chrome/browser/android/offline_pages/prefetch/prefetch_background_task.cc (right): https://codereview.chromium.org/2914703002/diff/40001/chrome/browser/android/offline_pages/prefetch/prefetch_background_task.cc#newcode120 chrome/browser/android/offline_pages/prefetch/prefetch_background_task.cc:120: Schedule(0); On 2017/06/01 00:22:27, dewittj wrote: > Should we ...
3 years, 6 months ago (2017-06-02 00:48:37 UTC) #14
jianli
nyquist for background_scheduler bauerb for browser_prefs and webui
3 years, 6 months ago (2017-06-02 00:54:35 UTC) #16
Bernhard Bauer
LGTM https://codereview.chromium.org/2914703002/diff/80001/chrome/android/javatests/src/org/chromium/chrome/browser/offlinepages/prefetch/PrefetchBackgroundTaskTest.java File chrome/android/javatests/src/org/chromium/chrome/browser/offlinepages/prefetch/PrefetchBackgroundTaskTest.java (right): https://codereview.chromium.org/2914703002/diff/80001/chrome/android/javatests/src/org/chromium/chrome/browser/offlinepages/prefetch/PrefetchBackgroundTaskTest.java#newcode50 chrome/android/javatests/src/org/chromium/chrome/browser/offlinepages/prefetch/PrefetchBackgroundTaskTest.java:50: static class TestPrefetchBackgroundTask extends PrefetchBackgroundTask { Can you ...
3 years, 6 months ago (2017-06-02 10:20:03 UTC) #21
jianli
https://codereview.chromium.org/2914703002/diff/80001/chrome/android/javatests/src/org/chromium/chrome/browser/offlinepages/prefetch/PrefetchBackgroundTaskTest.java File chrome/android/javatests/src/org/chromium/chrome/browser/offlinepages/prefetch/PrefetchBackgroundTaskTest.java (right): https://codereview.chromium.org/2914703002/diff/80001/chrome/android/javatests/src/org/chromium/chrome/browser/offlinepages/prefetch/PrefetchBackgroundTaskTest.java#newcode50 chrome/android/javatests/src/org/chromium/chrome/browser/offlinepages/prefetch/PrefetchBackgroundTaskTest.java:50: static class TestPrefetchBackgroundTask extends PrefetchBackgroundTask { On 2017/06/02 10:20:03, ...
3 years, 6 months ago (2017-06-02 19:09:27 UTC) #22
nyquist
https://codereview.chromium.org/2914703002/diff/100001/chrome/android/javatests/src/org/chromium/chrome/browser/offlinepages/prefetch/PrefetchBackgroundTaskTest.java File chrome/android/javatests/src/org/chromium/chrome/browser/offlinepages/prefetch/PrefetchBackgroundTaskTest.java (right): https://codereview.chromium.org/2914703002/diff/100001/chrome/android/javatests/src/org/chromium/chrome/browser/offlinepages/prefetch/PrefetchBackgroundTaskTest.java#newcode101 chrome/android/javatests/src/org/chromium/chrome/browser/offlinepages/prefetch/PrefetchBackgroundTaskTest.java:101: public TestBackgroundTaskScheduler() {} Could this test instead have an ...
3 years, 6 months ago (2017-06-02 19:14:34 UTC) #23
jianli
https://codereview.chromium.org/2914703002/diff/100001/chrome/android/javatests/src/org/chromium/chrome/browser/offlinepages/prefetch/PrefetchBackgroundTaskTest.java File chrome/android/javatests/src/org/chromium/chrome/browser/offlinepages/prefetch/PrefetchBackgroundTaskTest.java (right): https://codereview.chromium.org/2914703002/diff/100001/chrome/android/javatests/src/org/chromium/chrome/browser/offlinepages/prefetch/PrefetchBackgroundTaskTest.java#newcode101 chrome/android/javatests/src/org/chromium/chrome/browser/offlinepages/prefetch/PrefetchBackgroundTaskTest.java:101: public TestBackgroundTaskScheduler() {} On 2017/06/02 19:14:34, nyquist (nychthemeron ping) ...
3 years, 6 months ago (2017-06-02 20:02:43 UTC) #24
jianli
https://codereview.chromium.org/2914703002/diff/100001/chrome/android/javatests/src/org/chromium/chrome/browser/offlinepages/prefetch/PrefetchBackgroundTaskTest.java File chrome/android/javatests/src/org/chromium/chrome/browser/offlinepages/prefetch/PrefetchBackgroundTaskTest.java (right): https://codereview.chromium.org/2914703002/diff/100001/chrome/android/javatests/src/org/chromium/chrome/browser/offlinepages/prefetch/PrefetchBackgroundTaskTest.java#newcode101 chrome/android/javatests/src/org/chromium/chrome/browser/offlinepages/prefetch/PrefetchBackgroundTaskTest.java:101: public TestBackgroundTaskScheduler() {} On 2017/06/02 20:02:43, jianli wrote: > ...
3 years, 6 months ago (2017-06-02 20:37:39 UTC) #25
nyquist
lgtm. Filed https://bugs.chromium.org/p/chromium/issues/detail?id=729156 for the follow up from our discussion.
3 years, 6 months ago (2017-06-02 20:43:54 UTC) #26
jianli
thestig for chrome/common/DEPS
3 years, 6 months ago (2017-06-02 21:53:19 UTC) #32
Lei Zhang
lgtm
3 years, 6 months ago (2017-06-02 21:56:25 UTC) #33
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/2914703002/220001
3 years, 6 months ago (2017-06-07 05:07:59 UTC) #52
commit-bot: I haz the power
3 years, 6 months ago (2017-06-07 05:13:21 UTC) #55
Message was sent while issue was closed.
Committed patchset #12 (id:220001) as
https://chromium.googlesource.com/chromium/src/+/ac940cb6160ade6899f326ddde2d...

Powered by Google App Engine
This is Rietveld 408576698