Index: device/bluetooth/bluetooth_adapter_android.cc |
diff --git a/device/bluetooth/bluetooth_adapter_android.cc b/device/bluetooth/bluetooth_adapter_android.cc |
index 218329883bcbd85190982044559d28bd76b65edf..77c52759225ff62fd5c21be1260c1a338681eabc 100644 |
--- a/device/bluetooth/bluetooth_adapter_android.cc |
+++ b/device/bluetooth/bluetooth_adapter_android.cc |
@@ -140,7 +140,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_, |