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

Unified Diff: device/bluetooth/bluetooth_adapter_factory_wrapper.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: device/bluetooth/bluetooth_adapter_factory_wrapper.cc
diff --git a/device/bluetooth/bluetooth_adapter_factory_wrapper.cc b/device/bluetooth/bluetooth_adapter_factory_wrapper.cc
index 722fb247e4851b012ada60d855ff3a082186dc8c..0f6734e0fc4387e5cca9306dac989322df9deffd 100644
--- a/device/bluetooth/bluetooth_adapter_factory_wrapper.cc
+++ b/device/bluetooth/bluetooth_adapter_factory_wrapper.cc
@@ -35,12 +35,12 @@ BluetoothAdapterFactoryWrapper& BluetoothAdapterFactoryWrapper::Get() {
return g_singleton.Get();
}
-bool BluetoothAdapterFactoryWrapper::IsLowEnergyAvailable() {
+bool BluetoothAdapterFactoryWrapper::IsLowEnergySupported() {
DCHECK(thread_checker_.CalledOnValidThread());
if (adapter_ != nullptr) {
return true;
}
- return BluetoothAdapterFactory::IsLowEnergyAvailable();
+ return BluetoothAdapterFactory::IsLowEnergySupported();
}
void BluetoothAdapterFactoryWrapper::AcquireAdapter(
@@ -56,7 +56,7 @@ void BluetoothAdapterFactoryWrapper::AcquireAdapter(
return;
}
- DCHECK(BluetoothAdapterFactory::IsLowEnergyAvailable());
+ DCHECK(BluetoothAdapterFactory::IsLowEnergySupported());
BluetoothAdapterFactory::GetAdapter(
base::Bind(&BluetoothAdapterFactoryWrapper::OnGetAdapter,
weak_ptr_factory_.GetWeakPtr(), callback));
« no previous file with comments | « device/bluetooth/bluetooth_adapter_factory_wrapper.h ('k') | extensions/browser/api/bluetooth/bluetooth_event_router.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698