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

Issue 2087633002: Defines TriggerConditions and plumbs up to BackgroundScheduler (Closed)

Created:
4 years, 6 months ago by dougarnett
Modified:
4 years, 6 months ago
CC:
chromium-reviews, romax+watch_chromium.org, fgorski+watch_chromium.org, dewittj+watch_chromium.org, petewil+watch_chromium.org, chili+watch_chromium.org, dimich+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Defines TriggerConditions and plumbs up to BackgroundScheduler but does not yet use for the GcmNetworkManager Task (which will be in follow-up patch). BUG=619686 Committed: https://crrev.com/a02844bf427dc973f71cf69d9e5e24a542aaedc0 Cr-Commit-Position: refs/heads/master@{#401481}

Patch Set 1 #

Total comments: 11

Patch Set 2 : Addressed comments #

Total comments: 2

Patch Set 3 : Exposed TriggerConditions object for test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+127 lines, -18 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/offlinepages/BackgroundScheduler.java View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/offlinepages/BackgroundSchedulerBridge.java View 1 2 chunks +14 lines, -2 lines 0 comments Download
A chrome/android/java/src/org/chromium/chrome/browser/offlinepages/TriggerConditions.java View 1 1 chunk +40 lines, -0 lines 0 comments Download
M chrome/android/java_sources.gni View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/android/junit/src/org/chromium/chrome/browser/offlinepages/BackgroundSchedulerTest.java View 1 3 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/android/offline_pages/background_scheduler_bridge.h View 1 chunk +8 lines, -1 line 0 comments Download
M chrome/browser/android/offline_pages/background_scheduler_bridge.cc View 2 chunks +16 lines, -3 lines 0 comments Download
M components/offline_pages/background/request_coordinator.h View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M components/offline_pages/background/request_coordinator.cc View 1 2 3 chunks +16 lines, -4 lines 0 comments Download
M components/offline_pages/background/request_coordinator_unittest.cc View 1 2 3 chunks +13 lines, -2 lines 0 comments Download
M components/offline_pages/background/scheduler.h View 2 chunks +9 lines, -3 lines 0 comments Download

Messages

Total messages: 14 (3 generated)
dougarnett
4 years, 6 months ago (2016-06-20 22:01:32 UTC) #2
fgorski
mostly looks good. https://codereview.chromium.org/2087633002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/offlinepages/TriggerConditions.java File chrome/android/java/src/org/chromium/chrome/browser/offlinepages/TriggerConditions.java (right): https://codereview.chromium.org/2087633002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/offlinepages/TriggerConditions.java#newcode14 chrome/android/java/src/org/chromium/chrome/browser/offlinepages/TriggerConditions.java:14: * Creates set of device network ...
4 years, 6 months ago (2016-06-20 22:46:54 UTC) #3
Pete Williamson
Overall looks good, a few comments. I do wonder, though, if we should do this ...
4 years, 6 months ago (2016-06-20 23:14:03 UTC) #4
dougarnett
<guess it would help if I published my drafts> https://codereview.chromium.org/2087633002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/offlinepages/BackgroundSchedulerBridge.java File chrome/android/java/src/org/chromium/chrome/browser/offlinepages/BackgroundSchedulerBridge.java (right): https://codereview.chromium.org/2087633002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/offlinepages/BackgroundSchedulerBridge.java#newcode44 chrome/android/java/src/org/chromium/chrome/browser/offlinepages/BackgroundSchedulerBridge.java:44: ...
4 years, 6 months ago (2016-06-22 19:54:18 UTC) #5
Pete Williamson
https://codereview.chromium.org/2087633002/diff/1/components/offline_pages/background/request_coordinator_unittest.cc File components/offline_pages/background/request_coordinator_unittest.cc (right): https://codereview.chromium.org/2087633002/diff/1/components/offline_pages/background/request_coordinator_unittest.cc#newcode205 components/offline_pages/background/request_coordinator_unittest.cc:205: EXPECT_EQ(50, scheduler_stub->conditions()->minimum_battery_percentage); On 2016/06/22 19:54:18, dougarnett wrote: > On ...
4 years, 6 months ago (2016-06-22 20:49:11 UTC) #6
dougarnett
https://codereview.chromium.org/2087633002/diff/1/components/offline_pages/background/request_coordinator_unittest.cc File components/offline_pages/background/request_coordinator_unittest.cc (right): https://codereview.chromium.org/2087633002/diff/1/components/offline_pages/background/request_coordinator_unittest.cc#newcode205 components/offline_pages/background/request_coordinator_unittest.cc:205: EXPECT_EQ(50, scheduler_stub->conditions()->minimum_battery_percentage); On 2016/06/22 20:49:11, Pete Williamson wrote: > ...
4 years, 6 months ago (2016-06-22 21:52:17 UTC) #7
Pete Williamson
lgtm
4 years, 6 months ago (2016-06-22 21:57:16 UTC) #8
fgorski
lgtm
4 years, 6 months ago (2016-06-22 23:34:25 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2087633002/40001
4 years, 6 months ago (2016-06-22 23:37:30 UTC) #11
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 6 months ago (2016-06-23 00:37:28 UTC) #12
commit-bot: I haz the power
4 years, 6 months ago (2016-06-23 00:39:16 UTC) #14
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/a02844bf427dc973f71cf69d9e5e24a542aaedc0
Cr-Commit-Position: refs/heads/master@{#401481}

Powered by Google App Engine
This is Rietveld 408576698