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

Issue 1287753002: bluetooth: Remove callback from BluetoothGattConnection::Disconnect (Closed)

Created:
5 years, 4 months ago by scheib
Modified:
5 years, 3 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, scheib+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

bluetooth: Remove callback from BluetoothGattConnection::Disconnect In the process of implementing implement BluetoothDevice::CreateGattConnection for Android and Mac platforms we found a pattern mis match, where previously callbacks upon actions such as disconnect were planned. However, Android and CoreBluetooth APIs only send events with no contract for a 1:1 pairing with calls such as disconnecting. Simplify our API by removing the BluetoothGattConnection::Disconnect callback, as we don't need it. Part of a 4 patch series: https://crrev.com/1287753002 Remove Disconnect callback <<< https://crrev.com/1284073002 Add adapter_ to BluetoothDevice https://crrev.com/1292263002 BluetoothDevice::CreateGattConnection Impl https://crrev.com/1256313002 Android Impl & tests. BUG=520304 Committed: https://crrev.com/c89c898b165345923e5f36fd4dde886891d80211 Cr-Commit-Position: refs/heads/master@{#349233}

Patch Set 1 : #

Total comments: 2

Patch Set 2 : Merge TOT #

Patch Set 3 : address jyasskin; revert to previous callback count style #

Patch Set 4 : Merge TOT #

Messages

Total messages: 17 (7 generated)
scheib
5 years, 4 months ago (2015-08-12 23:49:43 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1287753002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1287753002/20001
5 years, 4 months ago (2015-08-19 20:37:29 UTC) #4
Jeffrey Yasskin
lgtm https://codereview.chromium.org/1287753002/diff/20001/device/bluetooth/bluetooth_gatt_chromeos_unittest.cc File device/bluetooth/bluetooth_gatt_chromeos_unittest.cc (right): https://codereview.chromium.org/1287753002/diff/20001/device/bluetooth/bluetooth_gatt_chromeos_unittest.cc#newcode211 device/bluetooth/bluetooth_gatt_chromeos_unittest.cc:211: EXPECT_EQ(1, success_callback_count_--); I think it'd be easier to ...
5 years, 4 months ago (2015-08-19 20:43:46 UTC) #5
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 4 months ago (2015-08-19 21:43:16 UTC) #7
scheib
https://codereview.chromium.org/1287753002/diff/20001/device/bluetooth/bluetooth_gatt_chromeos_unittest.cc File device/bluetooth/bluetooth_gatt_chromeos_unittest.cc (right): https://codereview.chromium.org/1287753002/diff/20001/device/bluetooth/bluetooth_gatt_chromeos_unittest.cc#newcode211 device/bluetooth/bluetooth_gatt_chromeos_unittest.cc:211: EXPECT_EQ(1, success_callback_count_--); On 2015/08/19 20:43:46, Jeffrey Yasskin wrote: > ...
5 years, 3 months ago (2015-09-13 02:39:57 UTC) #10
scheib
arman for OWNERS please.
5 years, 3 months ago (2015-09-14 03:54:40 UTC) #11
armansito
lgtm
5 years, 3 months ago (2015-09-16 19:51:48 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1287753002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1287753002/100001
5 years, 3 months ago (2015-09-16 20:50:32 UTC) #15
commit-bot: I haz the power
Committed patchset #4 (id:100001)
5 years, 3 months ago (2015-09-16 21:26:26 UTC) #16
commit-bot: I haz the power
5 years, 3 months ago (2015-09-16 21:27:05 UTC) #17
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/c89c898b165345923e5f36fd4dde886891d80211
Cr-Commit-Position: refs/heads/master@{#349233}

Powered by Google App Engine
This is Rietveld 408576698