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

Unified Diff: chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_bluetooth_util.cc

Issue 491753002: [EasyUnlock] Add a private API for establishing an insecure Bluetooth connection. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix non-ChromeOS build Created 6 years, 4 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: chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_bluetooth_util.cc
diff --git a/chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_bluetooth_util.cc b/chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_bluetooth_util.cc
index 288115285f053dc78c127c6d487be674982b3527..a8ee859441f370dd633897784c875e84bd6e22a0 100644
--- a/chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_bluetooth_util.cc
+++ b/chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_bluetooth_util.cc
@@ -6,6 +6,8 @@
#include "base/callback.h"
+using device::BluetoothDevice;
+
namespace extensions {
namespace api {
namespace easy_unlock {
@@ -24,6 +26,14 @@ void SeekBluetoothDeviceByAddress(const std::string& device_address,
result.error_message = kApiUnavailable;
callback.Run(result);
}
+
+void ConnectToBluetoothServiceInsecurely(
+ device::BluetoothDevice* device,
+ const device::BluetoothUUID& uuid,
+ const BluetoothDevice::ConnectToServiceCallback& callback,
+ const BluetoothDevice::ConnectToServiceErrorCallback& error_callback) {
+ error_callback.Run(kApiUnavailable);
+}
#endif // !defined(OS_CHROMEOS)
} // namespace easy_unlock

Powered by Google App Engine
This is Rietveld 408576698