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

Unified Diff: device/bluetooth/bluetooth_adapter_factory_wrapper.cc

Issue 2815793003: bluetooth: Introduce SetLowEnergyAvailableForTesting (Closed)
Patch Set: 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
« no previous file with comments | « device/bluetooth/bluetooth_adapter_factory.cc ('k') | device/bluetooth/test/fake_bluetooth.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..45e7205d84476ec73195b701ad758de35ccb7b18 100644
--- a/device/bluetooth/bluetooth_adapter_factory_wrapper.cc
+++ b/device/bluetooth/bluetooth_adapter_factory_wrapper.cc
@@ -40,7 +40,7 @@ bool BluetoothAdapterFactoryWrapper::IsLowEnergyAvailable() {
if (adapter_ != nullptr) {
return true;
}
- return BluetoothAdapterFactory::IsLowEnergyAvailable();
+ return BluetoothAdapterFactory::Get().IsLowEnergyAvailable();
}
void BluetoothAdapterFactoryWrapper::AcquireAdapter(
@@ -56,7 +56,7 @@ void BluetoothAdapterFactoryWrapper::AcquireAdapter(
return;
}
- DCHECK(BluetoothAdapterFactory::IsLowEnergyAvailable());
+ DCHECK(BluetoothAdapterFactory::Get().IsLowEnergyAvailable());
BluetoothAdapterFactory::GetAdapter(
base::Bind(&BluetoothAdapterFactoryWrapper::OnGetAdapter,
weak_ptr_factory_.GetWeakPtr(), callback));
« no previous file with comments | « device/bluetooth/bluetooth_adapter_factory.cc ('k') | device/bluetooth/test/fake_bluetooth.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698