Index: device/bluetooth/bluetooth_adapter_android.cc |
diff --git a/device/bluetooth/bluetooth_adapter_android.cc b/device/bluetooth/bluetooth_adapter_android.cc |
index be47e919933534b39cca078e1b977c15710c35e4..9f39e4c4acd9f425bf4f0163436c23c8ccb6d23e 100644 |
--- a/device/bluetooth/bluetooth_adapter_android.cc |
+++ b/device/bluetooth/bluetooth_adapter_android.cc |
@@ -141,7 +141,7 @@ void BluetoothAdapterAndroid::CreateOrUpdateDeviceOnScan( |
jobject advertised_uuids) { // Java Type: List<ParcelUuid> |
BluetoothDevice*& device = devices_[ConvertJavaStringToUTF8(env, address)]; |
if (!device) { |
- device = BluetoothDeviceAndroid::Create(bluetooth_device_wrapper); |
+ device = BluetoothDeviceAndroid::Create(this, bluetooth_device_wrapper); |
static_cast<BluetoothDeviceAndroid*>(device) |
->UpdateAdvertisedUUIDs(advertised_uuids); |
FOR_EACH_OBSERVER(BluetoothAdapter::Observer, observers_, |