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

Issue 2377513002: Add a Physical Web JNI bridge to support native Physical Web clients (Closed)

Created:
4 years, 2 months ago by mattreynolds
Modified:
4 years, 2 months ago
Reviewers:
cco3, gone
CC:
chromium-reviews, agrieve+watch_chromium.org, mmocny
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add a Physical Web JNI bridge to support native Physical Web clients On Android, the Physical Web scanner is implemented in the Java layer. To support native Physical Web clients, the metadata about nearby URLs is made available via a JNI bridge. If the native client has also registered as a Physical Web listener, it will also be notified whenever a nearby URL is found or lost, or when the estimated distance to the device broadcasting the URL is updated. This change includes the methods necessary to initialize the bridge. BUG=636490 Committed: https://crrev.com/144c8c4437f3ceae3dfe8d07e8a76aaf3e3e7a0f Cr-Commit-Position: refs/heads/master@{#424843}

Patch Set 1 #

Patch Set 2 : rebase, fix import order #

Total comments: 10

Patch Set 3 : changes for cco3@ #

Patch Set 4 : split #

Total comments: 3

Patch Set 5 : avoid unnecessarily creating global ref #

Patch Set 6 : remove env param #

Patch Set 7 : remove @CalledByNative annotation on unused method #

Unified diffs Side-by-side diffs Delta from patch set Stats (+94 lines, -14 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/physicalweb/UrlManager.java View 1 2 3 4 5 6 7 chunks +48 lines, -4 lines 0 comments Download
M chrome/browser/BUILD.gn View 1 2 3 4 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
M chrome/browser/android/physical_web/physical_web_data_source_android.h View 1 2 3 1 chunk +12 lines, -5 lines 0 comments Download
M chrome/browser/android/physical_web/physical_web_data_source_android.cc View 1 2 3 4 5 1 chunk +30 lines, -5 lines 0 comments Download

Messages

Total messages: 46 (22 generated)
cco3
It might get through reviews faster if you break it up (maybe implement each method ...
4 years, 2 months ago (2016-10-07 20:40:43 UTC) #3
mattreynolds
https://codereview.chromium.org/2377513002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/physicalweb/UrlManager.java File chrome/android/java/src/org/chromium/chrome/browser/physicalweb/UrlManager.java (right): https://codereview.chromium.org/2377513002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/physicalweb/UrlManager.java#newcode197 chrome/android/java/src/org/chromium/chrome/browser/physicalweb/UrlManager.java:197: @VisibleForTesting On 2016/10/07 20:40:42, cco3 wrote: > This shouldn't ...
4 years, 2 months ago (2016-10-07 22:33:41 UTC) #4
cco3
LGTM
4 years, 2 months ago (2016-10-07 22:34:56 UTC) #5
mattreynolds
Good idea, I'll split this CL
4 years, 2 months ago (2016-10-07 22:35:07 UTC) #6
mattreynolds
dfalcantara@chromium.org: Please review changes in
4 years, 2 months ago (2016-10-10 19:12:21 UTC) #9
gone
https://codereview.chromium.org/2377513002/diff/60001/chrome/browser/android/physical_web/physical_web_data_source_android.cc File chrome/browser/android/physical_web/physical_web_data_source_android.cc (right): https://codereview.chromium.org/2377513002/diff/60001/chrome/browser/android/physical_web/physical_web_data_source_android.cc#newcode30 chrome/browser/android/physical_web/physical_web_data_source_android.cc:30: DCHECK(url_manager_.obj()); Should be more straightforward; check: AppBannerManagerAndroid::CreateJavaBannerManager() in C++ ...
4 years, 2 months ago (2016-10-11 00:18:07 UTC) #10
mattreynolds
https://codereview.chromium.org/2377513002/diff/60001/chrome/browser/android/physical_web/physical_web_data_source_android.cc File chrome/browser/android/physical_web/physical_web_data_source_android.cc (right): https://codereview.chromium.org/2377513002/diff/60001/chrome/browser/android/physical_web/physical_web_data_source_android.cc#newcode30 chrome/browser/android/physical_web/physical_web_data_source_android.cc:30: DCHECK(url_manager_.obj()); On 2016/10/11 00:18:07, dfalcantara wrote: > Should be ...
4 years, 2 months ago (2016-10-11 19:44:35 UTC) #11
gone
lgtm https://codereview.chromium.org/2377513002/diff/60001/chrome/browser/android/physical_web/physical_web_data_source_android.cc File chrome/browser/android/physical_web/physical_web_data_source_android.cc (right): https://codereview.chromium.org/2377513002/diff/60001/chrome/browser/android/physical_web/physical_web_data_source_android.cc#newcode30 chrome/browser/android/physical_web/physical_web_data_source_android.cc:30: DCHECK(url_manager_.obj()); On 2016/10/11 19:44:35, mattreynolds wrote: > On ...
4 years, 2 months ago (2016-10-11 19:50:33 UTC) #12
mattreynolds
Oh okay, thanks Dan!
4 years, 2 months ago (2016-10-11 19:51:30 UTC) #15
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/2377513002/80001
4 years, 2 months ago (2016-10-11 19:51:59 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/84780)
4 years, 2 months ago (2016-10-11 20:01:20 UTC) #18
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/2377513002/100001
4 years, 2 months ago (2016-10-11 21:51:32 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/84899)
4 years, 2 months ago (2016-10-11 22:04:37 UTC) #23
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/2377513002/120001
4 years, 2 months ago (2016-10-11 22:42:37 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/84986)
4 years, 2 months ago (2016-10-11 22:53:42 UTC) #28
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/2377513002/120001
4 years, 2 months ago (2016-10-11 23:20:41 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/85046)
4 years, 2 months ago (2016-10-11 23:36:04 UTC) #32
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/2377513002/120001
4 years, 2 months ago (2016-10-12 00:38:16 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/85143)
4 years, 2 months ago (2016-10-12 00:49:44 UTC) #36
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/2377513002/120001
4 years, 2 months ago (2016-10-12 17:38:03 UTC) #38
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/85732)
4 years, 2 months ago (2016-10-12 17:47:20 UTC) #40
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/2377513002/120001
4 years, 2 months ago (2016-10-12 20:34:41 UTC) #42
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 2 months ago (2016-10-12 20:47:15 UTC) #44
commit-bot: I haz the power
4 years, 2 months ago (2016-10-12 20:50:17 UTC) #46
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/144c8c4437f3ceae3dfe8d07e8a76aaf3e3e7a0f
Cr-Commit-Position: refs/heads/master@{#424843}

Powered by Google App Engine
This is Rietveld 408576698