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

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

Created:
3 years, 10 months ago by fgorski
Modified:
3 years, 10 months ago
Reviewers:
Pete Williamson
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/pending/heads/master
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} Committed: https://chromium.googlesource.com/chromium/src/+/4f0be6ea9ee6b8f44a56673a26996a767fd4539c

Patch Set 1 #

Total comments: 2

Patch Set 2 : Addressing CR feedback: comment updated #

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 1 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

Dependent Patchsets:

Messages

Total messages: 15 (9 generated)
fgorski
PTAL. This is first step to make it work on O.
3 years, 10 months ago (2017-02-09 06:06:46 UTC) #4
Pete Williamson
lgtm with comment change https://codereview.chromium.org/2685873003/diff/1/chrome/android/java/src/org/chromium/chrome/browser/offlinepages/BackgroundOfflinerTask.java File chrome/android/java/src/org/chromium/chrome/browser/offlinepages/BackgroundOfflinerTask.java (right): https://codereview.chromium.org/2685873003/diff/1/chrome/android/java/src/org/chromium/chrome/browser/offlinepages/BackgroundOfflinerTask.java#newcode86 chrome/android/java/src/org/chromium/chrome/browser/offlinepages/BackgroundOfflinerTask.java:86: // TODO(petewil): Nothing is holding ...
3 years, 10 months ago (2017-02-09 21:23:43 UTC) #7
Pete Williamson
lgtm with comment change https://codereview.chromium.org/2685873003/diff/1/chrome/android/java/src/org/chromium/chrome/browser/offlinepages/BackgroundOfflinerTask.java File chrome/android/java/src/org/chromium/chrome/browser/offlinepages/BackgroundOfflinerTask.java (right): https://codereview.chromium.org/2685873003/diff/1/chrome/android/java/src/org/chromium/chrome/browser/offlinepages/BackgroundOfflinerTask.java#newcode86 chrome/android/java/src/org/chromium/chrome/browser/offlinepages/BackgroundOfflinerTask.java:86: // TODO(petewil): Nothing is holding ...
3 years, 10 months ago (2017-02-09 21:23:43 UTC) #8
fgorski
Updated https://codereview.chromium.org/2685873003/diff/1/chrome/android/java/src/org/chromium/chrome/browser/offlinepages/BackgroundOfflinerTask.java File chrome/android/java/src/org/chromium/chrome/browser/offlinepages/BackgroundOfflinerTask.java (right): https://codereview.chromium.org/2685873003/diff/1/chrome/android/java/src/org/chromium/chrome/browser/offlinepages/BackgroundOfflinerTask.java#newcode86 chrome/android/java/src/org/chromium/chrome/browser/offlinepages/BackgroundOfflinerTask.java:86: // TODO(petewil): Nothing is holding the Wake Lock. ...
3 years, 10 months ago (2017-02-09 23:56:20 UTC) #9
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/2685873003/20001
3 years, 10 months ago (2017-02-09 23:56:52 UTC) #12
commit-bot: I haz the power
3 years, 10 months ago (2017-02-10 01:23:21 UTC) #15
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/4f0be6ea9ee6b8f44a56673a2699...

Powered by Google App Engine
This is Rietveld 408576698