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

Issue 2189183002: arc: bluetooth: Always acquire a NotifySession (Closed)

Created:
4 years, 4 months ago by puthik_chromium
Modified:
4 years, 4 months ago
CC:
chromium-reviews, elijahtaylor+arcwatch_chromium.org, hidehiko+watch_chromium.org, lhchavez+watch_chromium.org, rkc, yusukes+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

arc: bluetooth: Always acquire a NotifySession If Arc++ needs to keep receiving notifications it needs to unconditionally acquire a NotifySession. The Bluetooth API uses a ref-counting model to write to the descriptor. If other clients drop their NotifySessions, notifications will stop. BUG=632476 TEST=Build Committed: https://crrev.com/3a796de6b43352fb756aa1c9c24a8bc5fc481553 Cr-Commit-Position: refs/heads/master@{#408692}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Remove unneed code #

Patch Set 3 : Remove IsNotifying since it's going to be private #

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

Messages

Total messages: 23 (11 generated)
puthik_chromium
4 years, 4 months ago (2016-07-28 22:08:09 UTC) #4
puthik_chromium
FYI rkc@
4 years, 4 months ago (2016-07-28 22:09:04 UTC) #5
ortuno
https://codereview.chromium.org/2189183002/diff/1/components/arc/bluetooth/arc_bluetooth_bridge.cc File components/arc/bluetooth/arc_bluetooth_bridge.cc (right): https://codereview.chromium.org/2189183002/diff/1/components/arc/bluetooth/arc_bluetooth_bridge.cc#newcode1128 components/arc/bluetooth/arc_bluetooth_bridge.cc:1128: LOG(WARNING) << __func__ << ("Notification is stopped"); I don't ...
4 years, 4 months ago (2016-07-28 22:21:06 UTC) #6
puthik_chromium
https://codereview.chromium.org/2189183002/diff/1/components/arc/bluetooth/arc_bluetooth_bridge.cc File components/arc/bluetooth/arc_bluetooth_bridge.cc (right): https://codereview.chromium.org/2189183002/diff/1/components/arc/bluetooth/arc_bluetooth_bridge.cc#newcode1102 components/arc/bluetooth/arc_bluetooth_bridge.cc:1102: characteristic->StartNotifySession( The notifying session is always acquire here. https://codereview.chromium.org/2189183002/diff/1/components/arc/bluetooth/arc_bluetooth_bridge.cc#newcode1128 ...
4 years, 4 months ago (2016-07-28 22:40:31 UTC) #7
ortuno
https://codereview.chromium.org/2189183002/diff/1/components/arc/bluetooth/arc_bluetooth_bridge.cc File components/arc/bluetooth/arc_bluetooth_bridge.cc (right): https://codereview.chromium.org/2189183002/diff/1/components/arc/bluetooth/arc_bluetooth_bridge.cc#newcode1126 components/arc/bluetooth/arc_bluetooth_bridge.cc:1126: if (!characteristic->IsNotifying()) { IsNotifying() will always be true as ...
4 years, 4 months ago (2016-07-28 22:56:00 UTC) #8
puthik_chromium
Will add lhchavez owner reviewer after get bluetooth l-g-t-m https://codereview.chromium.org/2189183002/diff/1/components/arc/bluetooth/arc_bluetooth_bridge.cc File components/arc/bluetooth/arc_bluetooth_bridge.cc (right): https://codereview.chromium.org/2189183002/diff/1/components/arc/bluetooth/arc_bluetooth_bridge.cc#newcode1126 components/arc/bluetooth/arc_bluetooth_bridge.cc:1126: ...
4 years, 4 months ago (2016-07-28 23:11:12 UTC) #13
ortuno
lgtm bluetooth usage
4 years, 4 months ago (2016-07-28 23:14:05 UTC) #14
puthik_chromium
+lhchavez
4 years, 4 months ago (2016-07-28 23:17:29 UTC) #16
Luis Héctor Chávez
rs-lgtm
4 years, 4 months ago (2016-07-29 04:43:55 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/2189183002/40001
4 years, 4 months ago (2016-07-29 17:36:50 UTC) #20
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 4 months ago (2016-07-29 18:19:11 UTC) #21
commit-bot: I haz the power
4 years, 4 months ago (2016-07-29 18:21:39 UTC) #23
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/3a796de6b43352fb756aa1c9c24a8bc5fc481553
Cr-Commit-Position: refs/heads/master@{#408692}

Powered by Google App Engine
This is Rietveld 408576698