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

Unified Diff: device/bluetooth/test/bluetooth_test_android.cc

Issue 2032273002: If location services are turned off, have the BT chooser prompt the user to turn them on. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkcr
Patch Set: Created 4 years, 7 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/test/bluetooth_test_android.cc
diff --git a/device/bluetooth/test/bluetooth_test_android.cc b/device/bluetooth/test/bluetooth_test_android.cc
index b763733b51d2b31a2dc2215273e6388026634923..b6a533b00d0befe81b0b026fc86e8052f76f950e 100644
--- a/device/bluetooth/test/bluetooth_test_android.cc
+++ b/device/bluetooth/test/bluetooth_test_android.cc
@@ -73,6 +73,11 @@ bool BluetoothTestAndroid::DenyPermission() {
return true;
}
+void BluetoothTestAndroid::TurnOffLocationServices() {
+ Java_FakeBluetoothAdapter_turnOffLocationServices(
+ AttachCurrentThread(), j_fake_bluetooth_adapter_.obj());
+}
+
BluetoothDevice* BluetoothTestAndroid::SimulateLowEnergyDevice(
int device_ordinal) {
TestBluetoothAdapterObserver observer(adapter_);

Powered by Google App Engine
This is Rietveld 408576698