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

Unified Diff: device/bluetooth/bluetooth_device_android.cc

Issue 1681853003: Add BluetoothRemoteGattServiceWin to BluetoothDeviceWin (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add PlatformSupportsLowEnergy check in the unittests Created 4 years, 10 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
« no previous file with comments | « device/bluetooth/bluetooth_device_android.h ('k') | device/bluetooth/bluetooth_device_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/bluetooth_device_android.cc
diff --git a/device/bluetooth/bluetooth_device_android.cc b/device/bluetooth/bluetooth_device_android.cc
index 253680bb54e4e667ae1d5f26c5b160b3df7254d3..27fdbafd89c89ffa401febe6d440405d71590365 100644
--- a/device/bluetooth/bluetooth_device_android.cc
+++ b/device/bluetooth/bluetooth_device_android.cc
@@ -245,8 +245,7 @@ void BluetoothDeviceAndroid::OnGattServicesDiscovered(
JNIEnv* env,
const JavaParamRef<jobject>& jcaller) {
SetGattServicesDiscoveryComplete(true);
- FOR_EACH_OBSERVER(BluetoothAdapter::Observer, GetAdapter()->GetObservers(),
- GattServicesDiscovered(GetAdapter(), this));
+ adapter_->NotifyGattServicesDiscovered(this);
}
void BluetoothDeviceAndroid::CreateGattRemoteService(
@@ -262,13 +261,13 @@ void BluetoothDeviceAndroid::CreateGattRemoteService(
return;
BluetoothDevice::GattServiceMap::iterator service_iterator =
- gatt_services_.set(instance_id_string,
- BluetoothRemoteGattServiceAndroid::Create(
- GetAdapter(), this, bluetooth_gatt_service_wrapper,
- instance_id_string, j_device_.obj()));
+ gatt_services_.set(
+ instance_id_string,
+ BluetoothRemoteGattServiceAndroid::Create(
+ GetAndroidAdapter(), this, bluetooth_gatt_service_wrapper,
+ instance_id_string, j_device_.obj()));
- FOR_EACH_OBSERVER(BluetoothAdapter::Observer, GetAdapter()->GetObservers(),
- GattServiceAdded(adapter_, this, service_iterator->second));
+ adapter_->NotifyGattServiceAdded(service_iterator->second);
}
BluetoothDeviceAndroid::BluetoothDeviceAndroid(BluetoothAdapterAndroid* adapter)
« no previous file with comments | « device/bluetooth/bluetooth_device_android.h ('k') | device/bluetooth/bluetooth_device_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698