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

Unified Diff: components/proximity_auth/bluetooth_util_chromeos.cc

Issue 652403002: [Clean up] Expose ConnectToServiceInsecurely as a BluetoothDevice API on all platforms. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase: Restore deps rather than public_deps Created 6 years, 2 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
« no previous file with comments | « components/proximity_auth/bluetooth_util.cc ('k') | device/bluetooth/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/proximity_auth/bluetooth_util_chromeos.cc
diff --git a/components/proximity_auth/bluetooth_util_chromeos.cc b/components/proximity_auth/bluetooth_util_chromeos.cc
index 162ea639f94e32159240173e94336aab361e3132..86a0758fc913580f2287e14bcca444c9a842cb59 100644
--- a/components/proximity_auth/bluetooth_util_chromeos.cc
+++ b/components/proximity_auth/bluetooth_util_chromeos.cc
@@ -21,7 +21,6 @@
#include "base/threading/sequenced_worker_pool.h"
#include "base/time/time.h"
#include "device/bluetooth/bluetooth_device.h"
-#include "device/bluetooth/bluetooth_device_chromeos.h"
#include "net/socket/socket_descriptor.h"
// The bluez headers are (intentionally) not available within the Chromium
@@ -156,14 +155,5 @@ void SeekDeviceByAddress(const std::string& device_address,
base::Bind(&OnSeekDeviceResult, callback, error_callback));
}
-void ConnectToServiceInsecurely(
- device::BluetoothDevice* device,
- const device::BluetoothUUID& uuid,
- const BluetoothDevice::ConnectToServiceCallback& callback,
- const BluetoothDevice::ConnectToServiceErrorCallback& error_callback) {
- static_cast<chromeos::BluetoothDeviceChromeOS*>(device)
- ->ConnectToServiceInsecurely(uuid, callback, error_callback);
-}
-
} // namespace bluetooth_util
} // namespace proximity_auth
« no previous file with comments | « components/proximity_auth/bluetooth_util.cc ('k') | device/bluetooth/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698