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

Unified Diff: components/pairing/bluetooth_host_pairing_controller.cc

Issue 2808353004: bluetooth: Rename Is*Available to Is*Supported (Closed)
Patch Set: Add const Created 3 years, 8 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: 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..8b0b201521495019db5cac03930a610c0a98a362 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) {
+ const bool bluetooth_supported =
+ device::BluetoothAdapterFactory::IsBluetoothSupported();
+ if (!bluetooth_supported) {
ChangeStage(STAGE_INITIALIZATION_ERROR);
return;
}

Powered by Google App Engine
This is Rietveld 408576698