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

Issue 1973343005: Remove service, add device, in BluetoothLocalGattService::Delegate (Closed)

Created:
4 years, 7 months ago by rkc
Modified:
4 years, 7 months ago
Reviewers:
scheib
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, scheib+watch_chromium.org, ortuno+watch_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove service, add device, in BluetoothLocalGattService::Delegate. This Delegate sends the service along with the local GATT attributes when there really is no reason to send the service along. If a client needs the service, they can just get it from the attribute they are handling. However, we *are* missing the device, which is needed by clients to identify which device is actually making the read/write/notifystate requests. BluetoothLocalGattCharacteristicBlueZ::NotifyValueChanged now also takes a device. This CL fixes these issues and all current clients/tests for this code. R=scheib@chromium.org BUG=611862 Committed: https://crrev.com/d4ba1a590a3fcfee93f76ed4eb5d02235c4c8ad8 Cr-Commit-Position: refs/heads/master@{#394251}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : merge #

Total comments: 2

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+133 lines, -138 lines) Patch
M chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_api.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_event_router.h View 1 2 1 chunk +6 lines, -6 lines 0 comments Download
M chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_event_router.cc View 1 2 5 chunks +12 lines, -10 lines 0 comments Download
M device/bluetooth/bluetooth_local_gatt_characteristic.h View 1 2 3 4 1 chunk +8 lines, -5 lines 0 comments Download
M device/bluetooth/bluetooth_local_gatt_characteristic_unittest.cc View 1 10 chunks +28 lines, -28 lines 0 comments Download
M device/bluetooth/bluetooth_local_gatt_descriptor.h View 1 chunk +2 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_local_gatt_descriptor_unittest.cc View 6 chunks +9 lines, -9 lines 0 comments Download
M device/bluetooth/bluetooth_local_gatt_service.h View 1 5 chunks +18 lines, -18 lines 0 comments Download
M device/bluetooth/bluez/bluetooth_adapter_bluez.cc View 1 chunk +3 lines, -1 line 0 comments Download
M device/bluetooth/bluez/bluetooth_local_gatt_characteristic_bluez.h View 1 1 chunk +3 lines, -3 lines 0 comments Download
M device/bluetooth/bluez/bluetooth_local_gatt_characteristic_bluez.cc View 1 2 chunks +3 lines, -2 lines 0 comments Download
M device/bluetooth/bluez/bluetooth_local_gatt_descriptor_bluez.h View 1 chunk +1 line, -2 lines 0 comments Download
M device/bluetooth/bluez/bluetooth_local_gatt_descriptor_bluez.cc View 1 chunk +1 line, -1 line 0 comments Download
M device/bluetooth/dbus/bluetooth_gatt_characteristic_delegate_wrapper.cc View 1 2 chunks +4 lines, -4 lines 0 comments Download
M device/bluetooth/dbus/bluetooth_gatt_descriptor_delegate_wrapper.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M device/bluetooth/test/bluetooth_test.h View 5 chunks +0 lines, -5 lines 0 comments Download
M device/bluetooth/test/bluetooth_test.cc View 1 chunk +0 lines, -1 line 0 comments Download
M device/bluetooth/test/bluetooth_test_bluez.h View 2 chunks +0 lines, -6 lines 0 comments Download
M device/bluetooth/test/bluetooth_test_bluez.cc View 10 chunks +10 lines, -10 lines 0 comments Download
M device/bluetooth/test/test_bluetooth_local_gatt_service_delegate.h View 1 1 chunk +6 lines, -6 lines 0 comments Download
M device/bluetooth/test/test_bluetooth_local_gatt_service_delegate.cc View 1 5 chunks +16 lines, -18 lines 0 comments Download

Messages

Total messages: 17 (8 generated)
rkc
4 years, 7 months ago (2016-05-13 21:42:14 UTC) #1
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1973343005/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1973343005/60001
4 years, 7 months ago (2016-05-17 05:30:26 UTC) #3
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-17 07:33:20 UTC) #5
rkc
Ping? We're getting awfully close to the branch.
4 years, 7 months ago (2016-05-17 16:28:22 UTC) #6
scheib
LGTM, with comment fix below. Also, I've updated the description some to be more explicit. ...
4 years, 7 months ago (2016-05-17 19:54:27 UTC) #9
rkc
https://codereview.chromium.org/1973343005/diff/60001/device/bluetooth/bluetooth_local_gatt_characteristic.h File device/bluetooth/bluetooth_local_gatt_characteristic.h (right): https://codereview.chromium.org/1973343005/diff/60001/device/bluetooth/bluetooth_local_gatt_characteristic.h#newcode58 device/bluetooth/bluetooth_local_gatt_characteristic.h:58: // Notify that the remote device |device| that the ...
4 years, 7 months ago (2016-05-17 19:56:35 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1973343005/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1973343005/80001
4 years, 7 months ago (2016-05-17 20:06:01 UTC) #13
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 7 months ago (2016-05-17 22:42:45 UTC) #15
commit-bot: I haz the power
4 years, 7 months ago (2016-05-17 22:44:04 UTC) #17
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/d4ba1a590a3fcfee93f76ed4eb5d02235c4c8ad8
Cr-Commit-Position: refs/heads/master@{#394251}

Powered by Google App Engine
This is Rietveld 408576698