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

Unified Diff: components/pairing/bluetooth_host_pairing_controller.cc

Issue 2808353004: bluetooth: Rename Is*Available to Is*Supported (Closed)
Patch Set: Increase win to Win10 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..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;
}

Powered by Google App Engine
This is Rietveld 408576698