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

Unified Diff: device/bluetooth/bluetooth_adapter_android.h

Issue 1129683002: bluetooth: Android adapter can be created with and without Bluetooth permission. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bta-jni-
Patch Set: Created 5 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/bluetooth_adapter_android.h
diff --git a/device/bluetooth/bluetooth_adapter_android.h b/device/bluetooth/bluetooth_adapter_android.h
index cfb9d31733b719f3815ae49a561df2dbbbfb9f41..d458bb5659cc2a42c1de519da1bc02db69dc1531 100644
--- a/device/bluetooth/bluetooth_adapter_android.h
+++ b/device/bluetooth/bluetooth_adapter_android.h
@@ -23,6 +23,10 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothAdapterAndroid final
// Create a BluetoothAdapterAndroid instance.
static base::WeakPtr<BluetoothAdapterAndroid> CreateAdapter();
+ // Create a BluetoothAdapterAndroid instance without Bluetooth permission.
+ static base::WeakPtr<BluetoothAdapterAndroid>
+ CreateAdapterWithoutPermissionForTesting();
+
// Register C++ methods exposed to Java using JNI.
static bool RegisterJNI(JNIEnv* env);

Powered by Google App Engine
This is Rietveld 408576698