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

Issue 1928813002: Adds initial JNI bridge code for Background Scheduler implementation. (Closed)

Created:
4 years, 7 months ago by dougarnett
Modified:
4 years, 7 months ago
CC:
chromium-reviews, fgorski+watch_chromium.org, romax+watch_chromium.org, dewittj+watch_chromium.org, petewil+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

Adds initial JNI bridge code for Background Scheduler implementation. The idea is that the Java side only has statics (no instance) but ended up with instance on C++ side (can be created by Coordinator) to be able to provide implementation instance of Scheduler interface for C++ to Java calls. BUG=607346 Committed: https://crrev.com/9ca9a2703e0a762694f7940e9fea44ee42352916 Cr-Commit-Position: refs/heads/master@{#390703}

Patch Set 1 #

Total comments: 9

Patch Set 2 : Per feedback - schedule/unschedule naming change, callback bool arg, doc improvements #

Total comments: 6

Patch Set 3 : Some comment fixes #

Patch Set 4 : C++ style guide change #

Unified diffs Side-by-side diffs Delta from patch set Stats (+170 lines, -5 lines) Patch
A chrome/android/java/src/org/chromium/chrome/browser/offlinepages/BackgroundSchedulerBridge.java View 1 2 1 chunk +55 lines, -0 lines 0 comments Download
M chrome/android/java_sources.gni View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/android/chrome_jni_registrar.cc View 1 2 chunks +3 lines, -0 lines 0 comments Download
A chrome/browser/android/offline_pages/background_scheduler_bridge.h View 1 2 3 1 chunk +37 lines, -0 lines 0 comments Download
A chrome/browser/android/offline_pages/background_scheduler_bridge.cc View 1 1 chunk +65 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 chunks +3 lines, -0 lines 0 comments Download
M components/offline_pages/background/scheduler.h View 1 1 chunk +6 lines, -5 lines 0 comments Download

Messages

Total messages: 22 (8 generated)
dougarnett
4 years, 7 months ago (2016-04-27 23:11:30 UTC) #3
Pete Williamson
Mostly looks good, but we need a BUILD.gn file change too. https://codereview.chromium.org/1928813002/diff/1/chrome/chrome_browser.gypi File chrome/chrome_browser.gypi (right): ...
4 years, 7 months ago (2016-04-28 00:12:04 UTC) #4
fgorski
https://codereview.chromium.org/1928813002/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/1928813002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/offlinepages/BackgroundSchedulerBridge.java#newcode24 chrome/android/java/src/org/chromium/chrome/browser/offlinepages/BackgroundSchedulerBridge.java:24: void onResult(); Do we not want to pass anything ...
4 years, 7 months ago (2016-04-28 11:44:00 UTC) #5
dewittj
I'm worried about only static functions because it results in code that's harder to test ...
4 years, 7 months ago (2016-04-28 16:08:02 UTC) #6
dewittj
On 2016/04/28 16:08:02, dewittj wrote: > I'm worried about only static functions because it results ...
4 years, 7 months ago (2016-04-28 17:30:18 UTC) #7
dougarnett
https://codereview.chromium.org/1928813002/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/1928813002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/offlinepages/BackgroundSchedulerBridge.java#newcode24 chrome/android/java/src/org/chromium/chrome/browser/offlinepages/BackgroundSchedulerBridge.java:24: void onResult(); On 2016/04/28 11:44:00, fgorski wrote: > Do ...
4 years, 7 months ago (2016-04-28 22:45:23 UTC) #8
Pete Williamson
lgtm
4 years, 7 months ago (2016-04-28 22:51:26 UTC) #9
fgorski
lgtm with comments. (mostly improve documentation) https://codereview.chromium.org/1928813002/diff/20001/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/1928813002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/offlinepages/BackgroundSchedulerBridge.java#newcode29 chrome/android/java/src/org/chromium/chrome/browser/offlinepages/BackgroundSchedulerBridge.java:29: // expect a ...
4 years, 7 months ago (2016-04-29 04:50:41 UTC) #10
dougarnett
https://codereview.chromium.org/1928813002/diff/20001/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/1928813002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/offlinepages/BackgroundSchedulerBridge.java#newcode29 chrome/android/java/src/org/chromium/chrome/browser/offlinepages/BackgroundSchedulerBridge.java:29: // expect a callback (once processing has completed or ...
4 years, 7 months ago (2016-04-29 15:59:08 UTC) #11
dougarnett
Ted, are you able to do OWNERS review on chrome/browser/android/chrome_jni_registrar.cc?
4 years, 7 months ago (2016-04-29 16:01:55 UTC) #13
Ted C
On 2016/04/29 16:01:55, dougarnett wrote: > Ted, are you able to do OWNERS review on ...
4 years, 7 months ago (2016-04-29 17:44:53 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1928813002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1928813002/60001
4 years, 7 months ago (2016-04-29 18:20:27 UTC) #18
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 7 months ago (2016-04-29 18:26:09 UTC) #20
commit-bot: I haz the power
4 years, 7 months ago (2016-04-30 17:27:30 UTC) #21
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/9ca9a2703e0a762694f7940e9fea44ee42352916
Cr-Commit-Position: refs/heads/master@{#390703}

Powered by Google App Engine
This is Rietveld 408576698