Chromium Code Reviews
Description[Offline pages] Refactoring and code fix in BackgroundOffinerTask
This patch deals with 2 issues:
* We need to simplify the logic in BackgroundOffinerTask to reuse it
when converting background work to JobService for O,
* It turns out that the waiter provided by ChromeBackgroundService
was not released by the BackgroundOffinerTask in cases when device
conditions were not met,
* Relevant test are updated: wait is added to make sure lock is
released in all cases,
* Additionally tests are refactored to apply to new interface:
boolean result of startBackgroundRequests was never used, hence it was
removed and replaced with proper lock release.
BUG=690322, 683802
Review-Url: https://codereview.chromium.org/2685873003
Cr-Commit-Position: refs/heads/master@{#449502}
Committed: https://chromium.googlesource.com/chromium/src/+/4f0be6ea9ee6b8f44a56673a26996a767fd4539c
Patch Set 1 #
Total comments: 2
Patch Set 2 : Addressing CR feedback: comment updated #
Dependent Patchsets: Messages
Total messages: 15 (9 generated)
|
||||||||||||||||||||||||||||