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

Issue 2313413002: Pass JavaRef to Java methods in device/bluetooth. (Closed)

Created:
4 years, 3 months ago by Torne
Modified:
4 years, 3 months ago
Reviewers:
scheib
CC:
chromium-reviews, scheib+watch_chromium.org, ortuno+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Pass JavaRef to Java methods in device/bluetooth. Update code in device/bluetooth to use JavaRef when calling Java methods via JNI, instead of passing bare jobject. Various function parameter types are converted from jobject to JavaRef to enable calls to obj() higher up the call chain to be removed. BUG=506850 Committed: https://crrev.com/772283d1079c1271b1dca288a1ae350eae50a719 Cr-Commit-Position: refs/heads/master@{#417283}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Switch comments to a different form that clang-format will fit in 80 chars #

Unified diffs Side-by-side diffs Delta from patch set Stats (+62 lines, -45 lines) Patch
M device/bluetooth/bluetooth_adapter_android.h View 1 chunk +2 lines, -1 line 0 comments Download
M device/bluetooth/bluetooth_adapter_android.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M device/bluetooth/bluetooth_device_android.h View 2 chunks +3 lines, -1 line 0 comments Download
M device/bluetooth/bluetooth_device_android.cc View 3 chunks +4 lines, -2 lines 0 comments Download
M device/bluetooth/bluetooth_remote_gatt_characteristic_android.h View 2 chunks +5 lines, -2 lines 0 comments Download
M device/bluetooth/bluetooth_remote_gatt_characteristic_android.cc View 4 chunks +6 lines, -4 lines 0 comments Download
M device/bluetooth/bluetooth_remote_gatt_descriptor_android.h View 2 chunks +5 lines, -2 lines 0 comments Download
M device/bluetooth/bluetooth_remote_gatt_descriptor_android.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M device/bluetooth/bluetooth_remote_gatt_service_android.h View 1 2 chunks +5 lines, -2 lines 0 comments Download
M device/bluetooth/bluetooth_remote_gatt_service_android.cc View 1 2 chunks +4 lines, -2 lines 0 comments Download
M device/bluetooth/test/bluetooth_test_android.cc View 17 chunks +21 lines, -25 lines 0 comments Download

Messages

Total messages: 11 (4 generated)
Torne
https://codereview.chromium.org/2313413002/diff/1/device/bluetooth/bluetooth_remote_gatt_service_android.cc File device/bluetooth/bluetooth_remote_gatt_service_android.cc (right): https://codereview.chromium.org/2313413002/diff/1/device/bluetooth/bluetooth_remote_gatt_service_android.cc#newcode28 device/bluetooth/bluetooth_remote_gatt_service_android.cc:28: jobject>& /* BluetoothGattServiceWrapper */ bluetooth_gatt_service_wrapper, This line and others ...
4 years, 3 months ago (2016-09-07 16:50:50 UTC) #2
scheib
LGTM -- it would be nice to have the 'why' explained or linked from the ...
4 years, 3 months ago (2016-09-07 18:00:30 UTC) #3
Torne
On 2016/09/07 18:00:30, scheib wrote: > LGTM -- it would be nice to have the ...
4 years, 3 months ago (2016-09-08 10:44:04 UTC) #4
Torne
OK, using // comments fixed clang-format not being able to deal with it. Thanks :)
4 years, 3 months ago (2016-09-08 12:49:58 UTC) #5
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/2313413002/20001
4 years, 3 months ago (2016-09-08 12:50:13 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 3 months ago (2016-09-08 14:16:46 UTC) #9
commit-bot: I haz the power
4 years, 3 months ago (2016-09-08 14:19:14 UTC) #11
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/772283d1079c1271b1dca288a1ae350eae50a719
Cr-Commit-Position: refs/heads/master@{#417283}

Powered by Google App Engine
This is Rietveld 408576698