forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[android] Remove GcmNetworkManager based BackgroundTaskScheduler
When Android Oreo was introduced, we implemented a way to use a shared API for scheduling background tasks across various versions of Android. From Android Marshmallow and above we used the system JobScheduler, and for earlier versions of Android we used GcmNetworkManager provided by Google Play Services. Now that support for Android Marshmallow and earlier versions of Android is deprecated, it is unnecessary to keep this code around, since it is not in use. This CL removes the GCM based task scheduler and related functionality, as well as other code that provides functionality for versions of Android we no longer support. The persistence layer for storing the last OS version we have migrated to is deleted as part of this CL, since it was only used to reschedule tasks across GcmNetworkManager -> JobScheduler migration boundaries. The delegation interface itself is not removed since the functionality for exact scheduling time using the AlarmManager is kept around. Bug: 1295935, 1385893 Change-Id: Ic71c430c340be3c3f95f3d31bc0cc99638e9d5a1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4114948 Reviewed-by: Shakti Sahu <shaktisahu@chromium.org> Reviewed-by: Andrew Grieve <agrieve@chromium.org> Commit-Queue: Tommy Nyquist <nyquist@chromium.org> Cr-Commit-Position: refs/heads/main@{#1091961}
- Loading branch information
1 parent
ee93e9c
commit 5b665ff
Showing
32 changed files
with
47 additions
and
1,503 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.