Chromium Code Reviews| Index: components/pairing/bluetooth_host_pairing_controller.cc |
| diff --git a/components/pairing/bluetooth_host_pairing_controller.cc b/components/pairing/bluetooth_host_pairing_controller.cc |
| index c8c534fa06a9674645594b7c92e27291f89d6022..b93fb43fda6e683199e55a91aaf037e1f7698b65 100644 |
| --- a/components/pairing/bluetooth_host_pairing_controller.cc |
| +++ b/components/pairing/bluetooth_host_pairing_controller.cc |
| @@ -471,9 +471,9 @@ HostPairingController::Stage BluetoothHostPairingController::GetCurrentStage() { |
| void BluetoothHostPairingController::StartPairing() { |
| DCHECK_EQ(current_stage_, STAGE_NONE); |
| - bool bluetooth_available = |
| - device::BluetoothAdapterFactory::IsBluetoothAdapterAvailable(); |
| - if (!bluetooth_available) { |
| + bool bluetooth_supported = |
|
achuithb
2017/04/18 07:38:57
nit: const
ortuno
2017/04/19 23:19:44
Done.
|
| + device::BluetoothAdapterFactory::IsBluetoothSupported(); |
| + if (!bluetooth_supported) { |
| ChangeStage(STAGE_INITIALIZATION_ERROR); |
| return; |
| } |