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

Issue 2216623002: bluetooth: {start,stop}Notifications() return the characteristic (Closed)

Created:
4 years, 4 months ago by François Beaufort
Modified:
4 years, 4 months ago
CC:
blink-reviews, chromium-reviews, ortuno+watch_chromium.org, scheib+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

bluetooth: {start,stop}Notifications() return the characteristic See Spec PR at https://github.com/WebBluetoothCG/web-bluetooth/pull/264 BUG=529560 Committed: https://crrev.com/e1ce2f1c64c95ca852601407c15906b19ca26d03 Cr-Commit-Position: refs/heads/master@{#410201}

Patch Set 1 : #

Total comments: 7

Patch Set 2 : Address Gio's feedback #

Patch Set 3 : Change WeakPersistent to Persistent #

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -12 lines) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/notifications/start-succeeds.html View 1 1 chunk +7 lines, -1 line 0 comments Download
A + third_party/WebKit/LayoutTests/bluetooth/notifications/stop-after-start-succeeds.html View 1 1 chunk +11 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTCharacteristic.cpp View 1 2 2 chunks +26 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTCharacteristic.idl View 1 1 chunk +4 lines, -4 lines 0 comments Download

Messages

Total messages: 24 (13 generated)
François Beaufort
Hey Gio, Here's the patch for https://github.com/WebBluetoothCG/web-bluetooth/pull/264. Let me know what you think.
4 years, 4 months ago (2016-08-04 14:26:12 UTC) #7
ortuno
https://codereview.chromium.org/2216623002/diff/20001/third_party/WebKit/LayoutTests/bluetooth/notifications/stop-after-start-succeeds.html File third_party/WebKit/LayoutTests/bluetooth/notifications/stop-after-start-succeeds.html (right): https://codereview.chromium.org/2216623002/diff/20001/third_party/WebKit/LayoutTests/bluetooth/notifications/stop-after-start-succeeds.html#newcode19 third_party/WebKit/LayoutTests/bluetooth/notifications/stop-after-start-succeeds.html:19: 'Result should be the same as characteristic.'); You could ...
4 years, 4 months ago (2016-08-05 01:43:44 UTC) #8
haraken
https://codereview.chromium.org/2216623002/diff/20001/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTCharacteristic.cpp File third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTCharacteristic.cpp (right): https://codereview.chromium.org/2216623002/diff/20001/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTCharacteristic.cpp#newcode218 third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTCharacteristic.cpp:218: WeakPersistent<BluetoothRemoteGATTCharacteristic> m_webCharacteristic; On 2016/08/05 01:43:44, ortuno wrote: > This ...
4 years, 4 months ago (2016-08-05 04:27:58 UTC) #10
François Beaufort
https://codereview.chromium.org/2216623002/diff/20001/third_party/WebKit/LayoutTests/bluetooth/notifications/stop-after-start-succeeds.html File third_party/WebKit/LayoutTests/bluetooth/notifications/stop-after-start-succeeds.html (right): https://codereview.chromium.org/2216623002/diff/20001/third_party/WebKit/LayoutTests/bluetooth/notifications/stop-after-start-succeeds.html#newcode19 third_party/WebKit/LayoutTests/bluetooth/notifications/stop-after-start-succeeds.html:19: 'Result should be the same as characteristic.'); On 2016/08/05 ...
4 years, 4 months ago (2016-08-05 06:41:16 UTC) #11
ortuno
https://codereview.chromium.org/2216623002/diff/20001/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTCharacteristic.cpp File third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTCharacteristic.cpp (right): https://codereview.chromium.org/2216623002/diff/20001/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTCharacteristic.cpp#newcode218 third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTCharacteristic.cpp:218: WeakPersistent<BluetoothRemoteGATTCharacteristic> m_webCharacteristic; On 2016/08/05 at 04:27:58, haraken wrote: > ...
4 years, 4 months ago (2016-08-05 14:35:38 UTC) #16
François Beaufort
On 2016/08/05 14:35:38, ortuno wrote: > https://codereview.chromium.org/2216623002/diff/20001/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTCharacteristic.cpp > File > third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTCharacteristic.cpp > (right): > > ...
4 years, 4 months ago (2016-08-05 20:41:56 UTC) #17
ortuno
lgtm
4 years, 4 months ago (2016-08-05 20:47:58 UTC) #18
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/2216623002/60001
4 years, 4 months ago (2016-08-05 20:52:17 UTC) #20
commit-bot: I haz the power
Committed patchset #3 (id:60001)
4 years, 4 months ago (2016-08-05 22:38:03 UTC) #21
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/e1ce2f1c64c95ca852601407c15906b19ca26d03 Cr-Commit-Position: refs/heads/master@{#410201}
4 years, 4 months ago (2016-08-05 22:40:57 UTC) #23
haraken
4 years, 4 months ago (2016-08-08 00:49:06 UTC) #24
Message was sent while issue was closed.
On 2016/08/05 14:35:38, ortuno wrote:
>
https://codereview.chromium.org/2216623002/diff/20001/third_party/WebKit/Sour...
> File
>
third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTCharacteristic.cpp
> (right):
> 
>
https://codereview.chromium.org/2216623002/diff/20001/third_party/WebKit/Sour...
>
third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTCharacteristic.cpp:218:
> WeakPersistent<BluetoothRemoteGATTCharacteristic> m_webCharacteristic;
> On 2016/08/05 at 04:27:58, haraken wrote:
> > On 2016/08/05 01:43:44, ortuno wrote:
> > > This needs to be Persistent. Otherwise you might resolve the promise with
> null.
> > 
> > Are you sure that the persistents don't create a cycle? i.e., is it
guaranteed
> that onSuccess or onError is called in a finite time period?
> 
> Yes, it's guaranteed. If we don't ever call onSuccess or onError then it's a
bug
> on our mojo service.

Thanks, LGTM

Powered by Google App Engine
This is Rietveld 408576698