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

Unified Diff: extensions/browser/api/bluetooth/bluetooth_private_api.cc

Issue 2063353002: device/bluetooth: split out transport enum (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: renaming header, moving TransportMask back into filter 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: extensions/browser/api/bluetooth/bluetooth_private_api.cc
diff --git a/extensions/browser/api/bluetooth/bluetooth_private_api.cc b/extensions/browser/api/bluetooth/bluetooth_private_api.cc
index c6296d9d384c78e8b4bde10fda4d94c2c321a7f4..fa3ceb8713eb2bcd35686115a27f286da1cd281c 100644
--- a/extensions/browser/api/bluetooth/bluetooth_private_api.cc
+++ b/extensions/browser/api/bluetooth/bluetooth_private_api.cc
@@ -14,6 +14,7 @@
#include "device/bluetooth/bluetooth_adapter.h"
#include "device/bluetooth/bluetooth_adapter_factory.h"
#include "device/bluetooth/bluetooth_discovery_session.h"
+#include "device/bluetooth/bluetooth_types.h"
#include "extensions/browser/api/bluetooth/bluetooth_api.h"
#include "extensions/browser/api/bluetooth/bluetooth_api_pairing_delegate.h"
#include "extensions/browser/api/bluetooth/bluetooth_event_router.h"
@@ -414,14 +415,13 @@ bool BluetoothPrivateSetDiscoveryFilterFunction::DoWork(
switch (df_param.transport) {
case bt_private::TransportType::TRANSPORT_TYPE_LE:
- transport = device::BluetoothDiscoveryFilter::Transport::TRANSPORT_LE;
+ transport = device::BluetoothTransport::TRANSPORT_LE;
break;
case bt_private::TransportType::TRANSPORT_TYPE_BREDR:
- transport =
- device::BluetoothDiscoveryFilter::Transport::TRANSPORT_CLASSIC;
+ transport = device::BluetoothTransport::TRANSPORT_CLASSIC;
break;
default: // TRANSPORT_TYPE_NONE is included here
- transport = device::BluetoothDiscoveryFilter::Transport::TRANSPORT_DUAL;
+ transport = device::BluetoothTransport::TRANSPORT_DUAL;
break;
}

Powered by Google App Engine
This is Rietveld 408576698