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

Issue 2072423002: bluetooth: Remove device before dispatching event (Closed)

Created:
4 years, 6 months ago by ortuno
Modified:
4 years, 6 months ago
Reviewers:
Jeffrey Yasskin, scheib
CC:
blink-reviews, chromium-reviews, darin-cc_chromium.org, jam, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, ortuno+watch_chromium.org, scheib+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@my-origin
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

bluetooth: Remove device before dispatching event Changes the order in which we removed the device and dispatched the disconnected event. The previous order (dispatch -> remove), could result in removing a device that was added by the event handler. BUG=621022 Committed: https://crrev.com/efe33416c5109c9d155eb081a4894201519d902e Cr-Commit-Position: refs/heads/master@{#400601}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Address jyasskin's comments #

Patch Set 3 : Moar fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -1 line) Patch
M content/renderer/bluetooth/web_bluetooth_impl.cc View 1 1 chunk +5 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 1 chunk +1 line, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/gattserverdisconnected-event/reconnect-during-disconnected-event.html View 1 2 1 chunk +39 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (7 generated)
ortuno
scheib: PTAL
4 years, 6 months ago (2016-06-17 20:33:00 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/2072423002/1
4 years, 6 months ago (2016-06-17 20:34:41 UTC) #4
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/246269)
4 years, 6 months ago (2016-06-17 22:07:39 UTC) #6
Jeffrey Yasskin
lgtm https://codereview.chromium.org/2072423002/diff/1/content/renderer/bluetooth/web_bluetooth_impl.cc File content/renderer/bluetooth/web_bluetooth_impl.cc (right): https://codereview.chromium.org/2072423002/diff/1/content/renderer/bluetooth/web_bluetooth_impl.cc#newcode187 content/renderer/bluetooth/web_bluetooth_impl.cc:187: // to avoid deleting a device dispatchGattServerDisconnected might ...
4 years, 6 months ago (2016-06-18 05:00:14 UTC) #8
Jeffrey Yasskin
https://codereview.chromium.org/2072423002/diff/1/third_party/WebKit/LayoutTests/bluetooth/gattserverdisconnected-event/reconnect-during-disconnected-event.html File third_party/WebKit/LayoutTests/bluetooth/gattserverdisconnected-event/reconnect-during-disconnected-event.html (right): https://codereview.chromium.org/2072423002/diff/1/third_party/WebKit/LayoutTests/bluetooth/gattserverdisconnected-event/reconnect-during-disconnected-event.html#newcode37 third_party/WebKit/LayoutTests/bluetooth/gattserverdisconnected-event/reconnect-during-disconnected-event.html:37: }, 'A device disconnecting while connected should fire the ...
4 years, 6 months ago (2016-06-18 05:03:57 UTC) #9
ortuno
Thanks! https://codereview.chromium.org/2072423002/diff/1/content/renderer/bluetooth/web_bluetooth_impl.cc File content/renderer/bluetooth/web_bluetooth_impl.cc (right): https://codereview.chromium.org/2072423002/diff/1/content/renderer/bluetooth/web_bluetooth_impl.cc#newcode187 content/renderer/bluetooth/web_bluetooth_impl.cc:187: // to avoid deleting a device dispatchGattServerDisconnected might ...
4 years, 6 months ago (2016-06-18 20:01:20 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2072423002/40001
4 years, 6 months ago (2016-06-18 20:01:26 UTC) #13
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 6 months ago (2016-06-18 21:23:54 UTC) #14
commit-bot: I haz the power
4 years, 6 months ago (2016-06-18 21:25:18 UTC) #16
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/efe33416c5109c9d155eb081a4894201519d902e
Cr-Commit-Position: refs/heads/master@{#400601}

Powered by Google App Engine
This is Rietveld 408576698