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

Issue 2063353002: device/bluetooth: split out transport enum (Closed)

Created:
4 years, 6 months ago by Eric Caruso
Modified:
4 years, 6 months ago
Reviewers:
ortuno, jam, stevenjb
CC:
chromium-apps-reviews_chromium.org, chromium-reviews, darin-cc_chromium.org, extensions-reviews_chromium.org, jam, 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

device/bluetooth: split out transport enum The transport enum can be reused to describe supported transport types for remote devices and adapters. As such, move it out in preparation for adding this functionality to transports and adapters. BUG=b:29268565 TEST=compile and run unit tests Committed: https://crrev.com/ee39a56de7e2646b3e37b9efddfc9fe0be5194ab Cr-Commit-Position: refs/heads/master@{#400798}

Patch Set 1 #

Patch Set 2 : working around gcc bug 43407 #

Patch Set 3 : adding missing namespace #

Patch Set 4 : renaming header, moving TransportMask back into filter #

Total comments: 4

Patch Set 5 : remove useless TransportMask #

Total comments: 2

Patch Set 6 : renaming some stuff in extension/ that was missed #

Patch Set 7 : fixing adapter_mac, making clang happy #

Patch Set 8 : rebase #

Patch Set 9 : fixing new use in components/arc/bluetooth #

Unified diffs Side-by-side diffs Delta from patch set Stats (+166 lines, -167 lines) Patch
M components/arc/bluetooth/arc_bluetooth_bridge.cc View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -2 lines 0 comments Download
M components/proximity_auth/ble/bluetooth_low_energy_connection_finder.cc View 1 2 3 4 2 chunks +3 lines, -2 lines 0 comments Download
M content/browser/bluetooth/bluetooth_device_chooser_controller.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -1 line 0 comments Download
M device/bluetooth/bluetooth_adapter.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M device/bluetooth/bluetooth_adapter_mac.mm View 1 2 3 4 5 6 5 chunks +7 lines, -8 lines 0 comments Download
M device/bluetooth/bluetooth_adapter_mac_unittest.mm View 1 2 3 4 5 chunks +5 lines, -8 lines 0 comments Download
M device/bluetooth/bluetooth_adapter_unittest.cc View 1 2 3 4 7 chunks +28 lines, -34 lines 0 comments Download
A device/bluetooth/bluetooth_common.h View 1 2 3 4 1 chunk +29 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_discovery_filter.h View 1 2 3 4 4 chunks +5 lines, -12 lines 0 comments Download
M device/bluetooth/bluetooth_discovery_filter.cc View 1 2 3 4 5 6 5 chunks +11 lines, -8 lines 0 comments Download
M device/bluetooth/bluetooth_discovery_filter_unittest.cc View 1 2 3 4 8 chunks +20 lines, -36 lines 0 comments Download
M device/bluetooth/bluez/bluetooth_adapter_bluez.cc View 1 2 3 4 5 6 7 3 chunks +6 lines, -7 lines 0 comments Download
M device/bluetooth/bluez/bluetooth_bluez_unittest.cc View 1 2 3 4 11 chunks +32 lines, -32 lines 0 comments Download
M device/bluetooth/test/bluetooth_test.cc View 1 2 3 4 5 6 7 3 chunks +3 lines, -4 lines 0 comments Download
M extensions/browser/api/bluetooth/bluetooth_event_router_unittest.cc View 1 2 3 4 5 2 chunks +3 lines, -4 lines 0 comments Download
M extensions/browser/api/bluetooth/bluetooth_private_api.cc View 1 2 3 4 2 chunks +5 lines, -5 lines 0 comments Download
M extensions/browser/api/bluetooth/bluetooth_private_apitest.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 24 (11 generated)
jam
components & content lgtm
4 years, 6 months ago (2016-06-15 17:53:28 UTC) #3
ortuno
https://codereview.chromium.org/2063353002/diff/60001/device/bluetooth/bluetooth_types.h File device/bluetooth/bluetooth_types.h (right): https://codereview.chromium.org/2063353002/diff/60001/device/bluetooth/bluetooth_types.h#newcode5 device/bluetooth/bluetooth_types.h:5: #ifndef DEVICE_BLUETOOTH_BLUETOOTH_TYPES_H_ optional: IMHO bluetooth_common.h would be better. https://codereview.chromium.org/2063353002/diff/60001/device/bluetooth/bluetooth_types.h#newcode11 ...
4 years, 6 months ago (2016-06-15 18:12:27 UTC) #4
ortuno
https://codereview.chromium.org/2063353002/diff/60001/device/bluetooth/bluetooth_discovery_filter.h File device/bluetooth/bluetooth_discovery_filter.h (right): https://codereview.chromium.org/2063353002/diff/60001/device/bluetooth/bluetooth_discovery_filter.h#newcode24 device/bluetooth/bluetooth_discovery_filter.h:24: // Allowed transport types for the scan filter. I ...
4 years, 6 months ago (2016-06-15 18:13:34 UTC) #5
Eric Caruso
+stevenjb for extensions/browser/api/bluetooth. PTAL. https://codereview.chromium.org/2063353002/diff/80001/device/bluetooth/bluetooth_common.h File device/bluetooth/bluetooth_common.h (right): https://codereview.chromium.org/2063353002/diff/80001/device/bluetooth/bluetooth_common.h#newcode18 device/bluetooth/bluetooth_common.h:18: enum BluetoothTransport : uint8_t { ...
4 years, 6 months ago (2016-06-15 22:32:10 UTC) #7
Eric Caruso
Whoops, it didn't compile everything when I tried it locally. PTAL.
4 years, 6 months ago (2016-06-15 22:40:11 UTC) #8
ortuno
lgtm https://codereview.chromium.org/2063353002/diff/80001/device/bluetooth/bluetooth_discovery_filter.cc File device/bluetooth/bluetooth_discovery_filter.cc (right): https://codereview.chromium.org/2063353002/diff/80001/device/bluetooth/bluetooth_discovery_filter.cc#newcode119 device/bluetooth/bluetooth_discovery_filter.cc:119: result->SetTransport(static_cast<BluetoothTransport>(filter_a->transport_ | Why do you need this static_cast?
4 years, 6 months ago (2016-06-15 23:09:31 UTC) #9
ortuno
On 2016/06/15 at 23:09:31, ortuno wrote: > lgtm > > https://codereview.chromium.org/2063353002/diff/80001/device/bluetooth/bluetooth_discovery_filter.cc > File device/bluetooth/bluetooth_discovery_filter.cc (right): ...
4 years, 6 months ago (2016-06-15 23:10:03 UTC) #10
stevenjb
lgtm
4 years, 6 months ago (2016-06-20 17:26:50 UTC) #11
commit-bot: I haz the power
This CL has an open dependency (Issue 2073273002 Patch 1). Please resolve the dependency and ...
4 years, 6 months ago (2016-06-20 18:18:40 UTC) #15
commit-bot: I haz the power
This CL has an open dependency (Issue 2073273002 Patch 1). Please resolve the dependency and ...
4 years, 6 months ago (2016-06-20 18:19:52 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2063353002/160001
4 years, 6 months ago (2016-06-20 20:09:43 UTC) #20
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 6 months ago (2016-06-20 21:48:03 UTC) #22
commit-bot: I haz the power
4 years, 6 months ago (2016-06-20 21:58:30 UTC) #24
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/ee39a56de7e2646b3e37b9efddfc9fe0be5194ab
Cr-Commit-Position: refs/heads/master@{#400798}

Powered by Google App Engine
This is Rietveld 408576698