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

Issue 2737093002: [Offline pages] Clean up of device conditions related code (Closed)

Created:
3 years, 9 months ago by fgorski
Modified:
3 years, 9 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] Clean up of device conditions related code This change moves all DeviceConditions related code to that class and removes all the static methods for propagating conditions from OfflinePageUtils and other classes, except for the scheduler bridge. The code also adds a ShadowDeviceConditions to enable mocking of static methods for testing. BUG=699261 Review-Url: https://codereview.chromium.org/2737093002 Cr-Commit-Position: refs/heads/master@{#455498} Committed: https://chromium.googlesource.com/chromium/src/+/4235a8b857d6685b89ae1e5cc4ffe924a7a8ecf5

Patch Set 1 #

Total comments: 1

Patch Set 2 : Compilation fix and small code update #

Messages

Total messages: 17 (13 generated)
fgorski
PTAL https://codereview.chromium.org/2737093002/diff/1/chrome/android/junit/src/org/chromium/chrome/browser/offlinepages/BackgroundOfflinerTaskTest.java File chrome/android/junit/src/org/chromium/chrome/browser/offlinepages/BackgroundOfflinerTaskTest.java (right): https://codereview.chromium.org/2737093002/diff/1/chrome/android/junit/src/org/chromium/chrome/browser/offlinepages/BackgroundOfflinerTaskTest.java#newcode80 chrome/android/junit/src/org/chromium/chrome/browser/offlinepages/BackgroundOfflinerTaskTest.java:80: // OfflinePageUtils.setInstanceForTesting(mOfflinePageUtils); remove
3 years, 9 months ago (2017-03-07 22:09:58 UTC) #4
Pete Williamson
lgtm
3 years, 9 months ago (2017-03-08 02:00:26 UTC) #7
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/2737093002/20001
3 years, 9 months ago (2017-03-08 18:13:05 UTC) #14
commit-bot: I haz the power
3 years, 9 months ago (2017-03-08 18:39:02 UTC) #17
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/4235a8b857d6685b89ae1e5cc4ff...

Powered by Google App Engine
This is Rietveld 408576698