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

Issue 812673002: bluetooth: BluetoothAdapterDeleter used to control BluetoothAdapter destruction. (Closed)

Created:
6 years ago by scheib
Modified:
5 years, 11 months ago
Reviewers:
armansito
CC:
chromium-reviews, nasko+codewatch_chromium.org, darin-cc_chromium.org, scheib+watch_chromium.org, jam, creis+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@lkcr
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

bluetooth: BluetoothAdapterDeleter used to control BluetoothAdapter destruction. BluetoothAdapter must be destroyed on the UI thread (at minimum for the windows implementation). Until now this was done implicitly. Upcoming use in upcoming crrev.com/787953004 revealed this. This change explicitly controls the thread BluetoothAdapter is destroyed on. BUG=442789 Committed: https://crrev.com/cad5fd77932f1d9fcadbbed1d494ca64f550cf1e Cr-Commit-Position: refs/heads/master@{#310505}

Patch Set 1 : #

Total comments: 8

Patch Set 2 : respond to armansito & fix Mock #

Total comments: 2

Patch Set 3 : - MOCK_METHOD #

Total comments: 2

Patch Set 4 : fix tests, delete immediatly when on correct thread #

Patch Set 5 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -2 lines) Patch
M device/bluetooth/bluetooth_adapter.h View 1 4 chunks +16 lines, -2 lines 0 comments Download
M device/bluetooth/bluetooth_adapter_chromeos.h View 1 2 chunks +2 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_adapter_chromeos.cc View 1 2 3 4 2 chunks +7 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_adapter_mac.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_adapter_mac.mm View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_adapter_unittest.cc View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_adapter_win.h View 1 2 chunks +2 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_adapter_win.cc View 1 2 3 2 chunks +7 lines, -0 lines 0 comments Download
M device/bluetooth/test/mock_bluetooth_adapter.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M device/bluetooth/test/mock_bluetooth_adapter.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (12 generated)
scheib
6 years ago (2014-12-16 21:47:44 UTC) #3
armansito
https://codereview.chromium.org/812673002/diff/20001/device/bluetooth/bluetooth_adapter.h File device/bluetooth/bluetooth_adapter.h (left): https://codereview.chromium.org/812673002/diff/20001/device/bluetooth/bluetooth_adapter.h#oldcode340 device/bluetooth/bluetooth_adapter.h:340: virtual ~BluetoothAdapter(); nit: Empty line after destructor. https://codereview.chromium.org/812673002/diff/20001/device/bluetooth/bluetooth_adapter_chromeos.h File ...
6 years ago (2014-12-16 22:01:47 UTC) #4
scheib
Thanks https://codereview.chromium.org/812673002/diff/20001/device/bluetooth/bluetooth_adapter.h File device/bluetooth/bluetooth_adapter.h (left): https://codereview.chromium.org/812673002/diff/20001/device/bluetooth/bluetooth_adapter.h#oldcode340 device/bluetooth/bluetooth_adapter.h:340: virtual ~BluetoothAdapter(); On 2014/12/16 22:01:47, armansito wrote: > ...
6 years ago (2014-12-16 22:15:26 UTC) #5
armansito
https://codereview.chromium.org/812673002/diff/40001/device/bluetooth/test/mock_bluetooth_adapter.h File device/bluetooth/test/mock_bluetooth_adapter.h (right): https://codereview.chromium.org/812673002/diff/40001/device/bluetooth/test/mock_bluetooth_adapter.h#newcode36 device/bluetooth/test/mock_bluetooth_adapter.h:36: MOCK_METHOD0(DeleteOnCorrectThread, void()); Remove this, now that there's an actual ...
6 years ago (2014-12-16 22:17:18 UTC) #6
scheib
https://codereview.chromium.org/812673002/diff/40001/device/bluetooth/test/mock_bluetooth_adapter.h File device/bluetooth/test/mock_bluetooth_adapter.h (right): https://codereview.chromium.org/812673002/diff/40001/device/bluetooth/test/mock_bluetooth_adapter.h#newcode36 device/bluetooth/test/mock_bluetooth_adapter.h:36: MOCK_METHOD0(DeleteOnCorrectThread, void()); On 2014/12/16 22:17:18, armansito wrote: > Remove ...
6 years ago (2014-12-16 22:28:45 UTC) #7
armansito
lgtm with nit. https://codereview.chromium.org/812673002/diff/60001/device/bluetooth/test/mock_bluetooth_adapter.cc File device/bluetooth/test/mock_bluetooth_adapter.cc (right): https://codereview.chromium.org/812673002/diff/60001/device/bluetooth/test/mock_bluetooth_adapter.cc#newcode17 device/bluetooth/test/mock_bluetooth_adapter.cc:17: void MockBluetoothAdapter::DeleteOnCorrectThread() { nit: Should be ...
6 years ago (2014-12-16 22:39:27 UTC) #8
scheib
Thanks https://codereview.chromium.org/812673002/diff/60001/device/bluetooth/test/mock_bluetooth_adapter.cc File device/bluetooth/test/mock_bluetooth_adapter.cc (right): https://codereview.chromium.org/812673002/diff/60001/device/bluetooth/test/mock_bluetooth_adapter.cc#newcode17 device/bluetooth/test/mock_bluetooth_adapter.cc:17: void MockBluetoothAdapter::DeleteOnCorrectThread() { On 2014/12/16 22:39:27, armansito wrote: ...
5 years, 11 months ago (2015-01-08 04:02:08 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/812673002/140001
5 years, 11 months ago (2015-01-08 04:02:49 UTC) #14
commit-bot: I haz the power
CLs for remote refs other than refs/pending/heads/master must contain NOTRY=true in order for the CQ ...
5 years, 11 months ago (2015-01-08 04:02:51 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/812673002/140001
5 years, 11 months ago (2015-01-08 06:05:12 UTC) #18
commit-bot: I haz the power
CLs for remote refs other than refs/pending/heads/master must contain NOTRY=true in order for the CQ ...
5 years, 11 months ago (2015-01-08 06:05:16 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/812673002/160001
5 years, 11 months ago (2015-01-08 06:20:22 UTC) #22
commit-bot: I haz the power
Exceeded time limit waiting for builds to trigger.
5 years, 11 months ago (2015-01-08 08:21:20 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/812673002/160001
5 years, 11 months ago (2015-01-08 14:47:23 UTC) #26
commit-bot: I haz the power
Committed patchset #5 (id:160001)
5 years, 11 months ago (2015-01-08 15:30:22 UTC) #27
commit-bot: I haz the power
5 years, 11 months ago (2015-01-08 15:31:12 UTC) #28
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/cad5fd77932f1d9fcadbbed1d494ca64f550cf1e
Cr-Commit-Position: refs/heads/master@{#310505}

Powered by Google App Engine
This is Rietveld 408576698