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

Issue 2321693002: arc/bluetooth: Save BluetoothGattConnection objects (Closed)

Created:
4 years, 3 months ago by Eric Caruso
Modified:
4 years, 3 months ago
CC:
chromium-reviews, elijahtaylor+arcwatch_chromium.org, hidehiko+watch_chromium.org, lhchavez+watch_chromium.org, yusukes+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

arc/bluetooth: Save BluetoothGattConnection objects When we make outbound GATT connections, we were immediately letting them expire in OnGattConnected, which meant we would disconnect remote devices as soon as they were connected to us. BUG=644792 TEST=make GATT connections from inside the container and verify that they stay connected, disconnect and verify that the device is disconnected Committed: https://crrev.com/fcca36a57736c9f17c30607904a4e73b95461744 Cr-Commit-Position: refs/heads/master@{#417097}

Patch Set 1 #

Total comments: 3

Patch Set 2 : lhchavez@ nits #

Total comments: 4

Patch Set 3 : replacing emplace with operator[] to make builder happy #

Patch Set 4 : steel@ nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -4 lines) Patch
M components/arc/bluetooth/arc_bluetooth_bridge.h View 1 2 chunks +8 lines, -2 lines 0 comments Download
M components/arc/bluetooth/arc_bluetooth_bridge.cc View 1 2 3 2 chunks +13 lines, -2 lines 0 comments Download

Messages

Total messages: 25 (12 generated)
Eric Caruso
PTAL, thanks.
4 years, 3 months ago (2016-09-07 18:12:08 UTC) #3
Luis Héctor Chávez
lgtm with nits https://codereview.chromium.org/2321693002/diff/1/components/arc/bluetooth/arc_bluetooth_bridge.cc File components/arc/bluetooth/arc_bluetooth_bridge.cc (right): https://codereview.chromium.org/2321693002/diff/1/components/arc/bluetooth/arc_bluetooth_bridge.cc#newcode947 components/arc/bluetooth/arc_bluetooth_bridge.cc:947: gatt_connections_.emplace(addr->To<std::string>(), std::move(connection)); nit: DCHECK(CalledOnValidThread()); https://codereview.chromium.org/2321693002/diff/1/components/arc/bluetooth/arc_bluetooth_bridge.cc#newcode959 components/arc/bluetooth/arc_bluetooth_bridge.cc:959: ...
4 years, 3 months ago (2016-09-07 19:54:15 UTC) #4
Eric Caruso
Thanks!
4 years, 3 months ago (2016-09-07 20:15:43 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/2321693002/20001
4 years, 3 months ago (2016-09-07 20:16:31 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_compile_dbg_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_compile_dbg_ng/builds/259350) linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, ...
4 years, 3 months ago (2016-09-07 20:29:37 UTC) #10
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/2321693002/40001
4 years, 3 months ago (2016-09-07 21:25:41 UTC) #13
Rahul Chaturvedi
https://codereview.chromium.org/2321693002/diff/20001/components/arc/bluetooth/arc_bluetooth_bridge.cc File components/arc/bluetooth/arc_bluetooth_bridge.cc (right): https://codereview.chromium.org/2321693002/diff/20001/components/arc/bluetooth/arc_bluetooth_bridge.cc#newcode948 components/arc/bluetooth/arc_bluetooth_bridge.cc:948: gatt_connections_.emplace(addr->To<std::string>(), std::move(connection)); can't use map::emplace https://codereview.chromium.org/2321693002/diff/20001/components/arc/bluetooth/arc_bluetooth_bridge.cc#newcode948 components/arc/bluetooth/arc_bluetooth_bridge.cc:948: gatt_connections_.emplace(addr->To<std::string>(), std::move(connection)); ...
4 years, 3 months ago (2016-09-07 21:31:39 UTC) #14
Eric Caruso
https://codereview.chromium.org/2321693002/diff/20001/components/arc/bluetooth/arc_bluetooth_bridge.cc File components/arc/bluetooth/arc_bluetooth_bridge.cc (right): https://codereview.chromium.org/2321693002/diff/20001/components/arc/bluetooth/arc_bluetooth_bridge.cc#newcode948 components/arc/bluetooth/arc_bluetooth_bridge.cc:948: gatt_connections_.emplace(addr->To<std::string>(), std::move(connection)); On 2016/09/07 21:31:39, Rahul Chaturvedi wrote: > ...
4 years, 3 months ago (2016-09-07 21:33:31 UTC) #16
Eric Caruso
Thanks.
4 years, 3 months ago (2016-09-07 21:50:43 UTC) #17
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/2321693002/60001
4 years, 3 months ago (2016-09-07 21:51:20 UTC) #20
Rahul Chaturvedi
bt lgtm
4 years, 3 months ago (2016-09-07 22:06:09 UTC) #21
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 3 months ago (2016-09-07 22:31:20 UTC) #23
commit-bot: I haz the power
4 years, 3 months ago (2016-09-07 22:33:46 UTC) #25
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/fcca36a57736c9f17c30607904a4e73b95461744
Cr-Commit-Position: refs/heads/master@{#417097}

Powered by Google App Engine
This is Rietveld 408576698