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

Unified Diff: device/bluetooth/bluetooth_adapter_android.cc

Issue 1284073002: bluetooth: Add adapter to BluetoothDevice (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bt-drop-callback-
Patch Set: Updated patchset dependency Created 5 years, 4 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.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_,

Powered by Google App Engine
This is Rietveld 408576698