[EasyUnlock] Add a private API for establishing an insecure Bluetooth connection.
commit0c4d0683455edb72d7f4352745e3d7472a7d0332
authorisherman@chromium.org <isherman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 22 Aug 2014 07:32:27 +0000 (22 07:32 +0000)
committerisherman@chromium.org <isherman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 22 Aug 2014 07:33:32 +0000 (22 07:33 +0000)
tree2bf7098bc7ad268186abed0522e163cd9ffdef49
parentad5b75652f7a8fe44ee5d9a91acbe1792c51cb06
[EasyUnlock] Add a private API for establishing an insecure Bluetooth connection.

This is needed to avoid a pairing request prompt when connecting to a service on
a system that tries to upgrade the connection from general bonding to general
bonding with MITM protection, which according to Android and ChromeOS Bluetooth
experts is the correct behavior.

BUG=403069
TEST=chrome.easyUnlockPrivate.connectToBluetoothServiceInsecurely() should work
     just like chrome.bluetoothSocket.connect(), but not show a pairing request
     prompt when pairing with Android L.
R=tengs@chromium.org, keybuk@chromium.org

Review URL: https://codereview.chromium.org/491753002

Cr-Commit-Position: refs/heads/master@{#291353}
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@291353 0039d316-1c4b-4281-b951-d872f2087c98
14 files changed:
chrome/browser/extensions/api/bluetooth_socket/bluetooth_socket_api.cc
chrome/browser/extensions/api/bluetooth_socket/bluetooth_socket_api.h
chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_api.cc
chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_api.h
chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_bluetooth_util.cc
chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_bluetooth_util.h
chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_bluetooth_util_chromeos.cc
chrome/common/extensions/api/easy_unlock_private.idl
device/bluetooth/bluetooth_device_chromeos.cc
device/bluetooth/bluetooth_device_chromeos.h
device/bluetooth/bluetooth_socket_chromeos.cc
device/bluetooth/bluetooth_socket_chromeos.h
extensions/browser/extension_function_histogram_value.h
tools/metrics/histograms/histograms.xml