|
[Offline pages] Updates to background scheduling to use BTS
This patch moves offline page scheduling for pre-M OSs to
background_task_scheduler component and removes a lot of code
in the process:
* switches offline page handling in ChromeBackgroundService to
reschedule
* removes ChromeBackgroundserviceWaiter
* removes subclasses of BackgroundScheduler (responsible for
scheduling on different OS versions)
* Moves useful code from BackgroundOfflinerTask to
OfflineBackgroundTask
* Simplifies BackgroundSchedulerProcessor (and removes
namespace for interfaces)
* Updates the tests for classes mentioned above.
BUG= 699261
Review-Url: https://codereview.chromium.org/2830843002
Cr-Commit-Position: refs/heads/master@{#476352}
Committed: https://chromium.googlesource.com/chromium/src/+/c3cf4c7d10c4796ef841fc181d0207cfdc4ad252
Total comments: 24
Total comments: 6
Total comments: 1
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+605 lines, -974 lines) |
Patch |
|
M |
chrome/android/java/src/org/chromium/chrome/browser/ChromeBackgroundService.java
|
View
|
1
2
3
4
5
6
7
8
|
7 chunks |
+7 lines, -67 lines |
0 comments
|
Download
|
|
D |
chrome/android/java/src/org/chromium/chrome/browser/ChromeBackgroundServiceWaiter.java
|
View
|
1
|
1 chunk |
+0 lines, -50 lines |
0 comments
|
Download
|
|
D |
chrome/android/java/src/org/chromium/chrome/browser/offlinepages/BackgroundGcmScheduler.java
|
View
|
|
1 chunk |
+0 lines, -68 lines |
0 comments
|
Download
|
|
D |
chrome/android/java/src/org/chromium/chrome/browser/offlinepages/BackgroundJobScheduler.java
|
View
|
|
1 chunk |
+0 lines, -53 lines |
0 comments
|
Download
|
|
M |
chrome/android/java/src/org/chromium/chrome/browser/offlinepages/BackgroundOfflinerTask.java
|
View
|
1
2
3
4
5
6
|
1 chunk |
+0 lines, -98 lines |
0 comments
|
Download
|
|
M |
chrome/android/java/src/org/chromium/chrome/browser/offlinepages/BackgroundScheduler.java
|
View
|
1
2
3
4
5
6
7
8
9
10
|
2 chunks |
+53 lines, -52 lines |
0 comments
|
Download
|
|
M |
chrome/android/java/src/org/chromium/chrome/browser/offlinepages/BackgroundSchedulerBridge.java
|
View
|
|
2 chunks |
+6 lines, -5 lines |
0 comments
|
Download
|
|
A |
chrome/android/java/src/org/chromium/chrome/browser/offlinepages/BackgroundSchedulerProcessor.java
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+46 lines, -0 lines |
0 comments
|
Download
|
|
D |
chrome/android/java/src/org/chromium/chrome/browser/offlinepages/BackgroundSchedulerProcessorImpl.java
|
View
|
1
2
3
4
|
1 chunk |
+0 lines, -25 lines |
0 comments
|
Download
|
|
M |
chrome/android/java/src/org/chromium/chrome/browser/offlinepages/DeviceConditions.java
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+6 lines, -2 lines |
0 comments
|
Download
|
|
M |
chrome/android/java/src/org/chromium/chrome/browser/offlinepages/OfflineBackgroundTask.java
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+91 lines, -33 lines |
0 comments
|
Download
|
|
M |
chrome/android/java/src/org/chromium/chrome/browser/offlinepages/TaskExtrasPacker.java
|
View
|
1
|
2 chunks |
+0 lines, -7 lines |
0 comments
|
Download
|
|
D |
chrome/android/java/src/org/chromium/chrome/browser/offlinepages/interfaces/BackgroundSchedulerProcessor.java
|
View
|
1
2
3
4
|
1 chunk |
+0 lines, -29 lines |
0 comments
|
Download
|
|
M |
chrome/android/java_sources.gni
|
View
|
1
2
3
4
5
6
7
8
9
10
|
5 chunks |
+2 lines, -10 lines |
0 comments
|
Download
|
|
M |
chrome/android/javatests/src/org/chromium/chrome/browser/ChromeBackgroundServiceTest.java
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
D |
chrome/android/junit/src/org/chromium/chrome/browser/ChromeBackgroundServiceWaiterTest.java
|
View
|
1
|
1 chunk |
+0 lines, -75 lines |
0 comments
|
Download
|
|
M |
chrome/android/junit/src/org/chromium/chrome/browser/offlinepages/BackgroundOfflinerTaskTest.java
|
View
|
1
2
3
4
5
6
|
1 chunk |
+0 lines, -229 lines |
0 comments
|
Download
|
|
M |
chrome/android/junit/src/org/chromium/chrome/browser/offlinepages/BackgroundSchedulerTest.java
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+105 lines, -56 lines |
0 comments
|
Download
|
|
A |
chrome/android/junit/src/org/chromium/chrome/browser/offlinepages/OfflineBackgroundTaskTest.java
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+287 lines, -0 lines |
0 comments
|
Download
|
|
D |
chrome/android/junit/src/org/chromium/chrome/browser/offlinepages/ShadowGcmNetworkManager.java
|
View
|
|
1 chunk |
+0 lines, -50 lines |
0 comments
|
Download
|
|
D |
chrome/android/junit/src/org/chromium/chrome/browser/offlinepages/StubBackgroundSchedulerProcessor.java
|
View
|
|
1 chunk |
+0 lines, -52 lines |
0 comments
|
Download
|
|
M |
chrome/android/junit/src/org/chromium/chrome/browser/offlinepages/TaskExtrasPackerTest.java
|
View
|
1
|
3 chunks |
+0 lines, -11 lines |
0 comments
|
Download
|
|
M |
components/background_task_scheduler/android/java/src/org/chromium/components/background_task_scheduler/BackgroundTaskSchedulerFactory.java
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
Total messages: 56 (42 generated)
|