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

Issue 2692853011: [Offline pages] Refactoring and code fix in BackgroundOffinerTask (Closed)

Created:
3 years, 10 months ago by fgorski
Modified:
3 years, 10 months ago
Reviewers:
CC:
chromium-reviews
Target Ref:
refs/pending/branch-heads/2987
Project:
chromium
Visibility:
Public.

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} (cherry picked from commit 4f0be6ea9ee6b8f44a56673a26996a767fd4539c) Review-Url: https://codereview.chromium.org/2692853011 . Cr-Commit-Position: refs/branch-heads/2987@{#533} Cr-Branched-From: ad51088c0e8776e8dcd963dbe752c4035ba6dab6-refs/heads/master@{#444943} Committed: https://chromium.googlesource.com/chromium/src/+/4da2d1afd4c2ca9f1d40e91e66a012fb6ca7983d

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -71 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/offlinepages/BackgroundOfflinerTask.java View 3 chunks +25 lines, -36 lines 0 comments Download
M chrome/android/junit/src/org/chromium/chrome/browser/offlinepages/BackgroundOfflinerTaskTest.java View 5 chunks +39 lines, -35 lines 0 comments Download

Messages

Total messages: 2 (1 generated)
fgorski
3 years, 10 months ago (2017-02-15 22:41:07 UTC) #2
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
4da2d1afd4c2ca9f1d40e91e66a012fb6ca7983d.

Powered by Google App Engine
This is Rietveld 408576698