| 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 0ba6c01ea85b57eb6363f62d9fc21372530ef396..86fc88cb051ad3526e8f5912182c1f836961afe2 100644
|
| --- a/extensions/browser/api/bluetooth/bluetooth_private_api.cc
|
| +++ b/extensions/browser/api/bluetooth/bluetooth_private_api.cc
|
| @@ -102,8 +102,8 @@ bool ValidatePairingResponseOptions(
|
| const device::BluetoothDevice* device,
|
| const bt_private::SetPairingResponseOptions& options) {
|
| bool response = options.response != bt_private::PAIRING_RESPONSE_NONE;
|
| - bool pincode = options.pincode.get() != nullptr;
|
| - bool passkey = options.passkey.get() != nullptr;
|
| + bool pincode = options.pincode != nullptr;
|
| + bool passkey = options.passkey != nullptr;
|
|
|
| if (!response && !pincode && !passkey)
|
| return false;
|
| @@ -280,9 +280,9 @@ bool BluetoothPrivateSetPairingResponseFunction::DoWork(
|
| }
|
|
|
| if (options.pincode.get()) {
|
| - device->SetPinCode(*options.pincode.get());
|
| + device->SetPinCode(*options.pincode);
|
| } else if (options.passkey.get()) {
|
| - device->SetPasskey(*options.passkey.get());
|
| + device->SetPasskey(*options.passkey);
|
| } else {
|
| switch (options.response) {
|
| case bt_private::PAIRING_RESPONSE_CONFIRM:
|
|
|