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

Unified Diff: device/bluetooth/bluez/bluetooth_adapter_bluez.cc

Issue 2063353002: device/bluetooth: split out transport enum (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixing new use in components/arc/bluetooth Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: device/bluetooth/bluez/bluetooth_adapter_bluez.cc
diff --git a/device/bluetooth/bluez/bluetooth_adapter_bluez.cc b/device/bluetooth/bluez/bluetooth_adapter_bluez.cc
index 4f32eae3ca15524c53137c5804a0a3cd05bdfc3a..73e3f90dd010a1c65142863a16c0f52dc5c31516 100644
--- a/device/bluetooth/bluez/bluetooth_adapter_bluez.cc
+++ b/device/bluetooth/bluez/bluetooth_adapter_bluez.cc
@@ -18,6 +18,7 @@
#include "base/strings/stringprintf.h"
#include "base/threading/thread_task_runner_handle.h"
#include "build/build_config.h"
+#include "device/bluetooth/bluetooth_common.h"
#include "device/bluetooth/bluetooth_device.h"
#include "device/bluetooth/bluetooth_discovery_session_outcome.h"
#include "device/bluetooth/bluetooth_socket_thread.h"
@@ -1280,8 +1281,8 @@ void BluetoothAdapterBlueZ::AddDiscoverySession(
if (discovery_filter) {
discovery_request_pending_ = true;
- std::unique_ptr<BluetoothDiscoveryFilter> df(new BluetoothDiscoveryFilter(
- BluetoothDiscoveryFilter::Transport::TRANSPORT_DUAL));
+ std::unique_ptr<BluetoothDiscoveryFilter> df(
+ new BluetoothDiscoveryFilter(device::BLUETOOTH_TRANSPORT_DUAL));
df->CopyFrom(*discovery_filter);
SetDiscoveryFilter(
std::move(df),
@@ -1398,13 +1399,11 @@ void BluetoothAdapterBlueZ::SetDiscoveryFilter(
dbus_discovery_filter.rssi.reset(new int16_t(rssi));
transport = current_filter_->GetTransport();
- if (transport == BluetoothDiscoveryFilter::Transport::TRANSPORT_LE) {
+ if (transport == device::BLUETOOTH_TRANSPORT_LE) {
dbus_discovery_filter.transport.reset(new std::string("le"));
- } else if (transport ==
- BluetoothDiscoveryFilter::Transport::TRANSPORT_CLASSIC) {
+ } else if (transport == device::BLUETOOTH_TRANSPORT_CLASSIC) {
dbus_discovery_filter.transport.reset(new std::string("bredr"));
- } else if (transport ==
- BluetoothDiscoveryFilter::Transport::TRANSPORT_DUAL) {
+ } else if (transport == device::BLUETOOTH_TRANSPORT_DUAL) {
dbus_discovery_filter.transport.reset(new std::string("auto"));
}
« no previous file with comments | « device/bluetooth/bluetooth_discovery_filter_unittest.cc ('k') | device/bluetooth/bluez/bluetooth_bluez_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698