Index: device/bluetooth/bluetooth_adapter_android.h |
diff --git a/device/bluetooth/bluetooth_adapter_android.h b/device/bluetooth/bluetooth_adapter_android.h |
index c9db73f99f64dea48c52005c88122f13815a84c3..0d7da69e08235f8d4c1b8f0ca03a0478923f1e2d 100644 |
--- a/device/bluetooth/bluetooth_adapter_android.h |
+++ b/device/bluetooth/bluetooth_adapter_android.h |
@@ -82,6 +82,14 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothAdapterAndroid final |
const CreateAdvertisementCallback& callback, |
const CreateAdvertisementErrorCallback& error_callback) override; |
+ // Returns BluetoothAdapter Observers for use by Android platform |
+ // implementation classes to send event notifications. Intentionally not |
+ // exposed on the public base class BluetoothAdapter as it is an |
+ // implementation detail. |
+ base::ObserverList<device::BluetoothAdapter::Observer>& GetObservers() { |
+ return observers_; |
+ } |
+ |
// Handles a scan error event by invalidating all discovery sessions. |
void OnScanFailed(JNIEnv* env, jobject caller); |