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

Unified Diff: device/bluetooth/bluetooth_remote_gatt_service_android.h

Issue 1412963004: bluetooth: android: Implement Characteristic GetIdentifier, fix Service IDs too. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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_remote_gatt_service_android.h
diff --git a/device/bluetooth/bluetooth_remote_gatt_service_android.h b/device/bluetooth/bluetooth_remote_gatt_service_android.h
index b1d19e0dcd6ee790ba722c012961b98f1bf838aa..a8f1294a5329e4ac2a51fd6d535a940ef5faf73b 100644
--- a/device/bluetooth/bluetooth_remote_gatt_service_android.h
+++ b/device/bluetooth/bluetooth_remote_gatt_service_android.h
@@ -40,7 +40,7 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothRemoteGattServiceAndroid
BluetoothDeviceAndroid* device,
jobject bluetooth_remote_gatt_service_wrapper, // Java Type:
// BluetoothRemoteGattServiceWrapper
- std::string instanceId);
+ const std::string& instanceId);
// Register C++ methods exposed to Java using JNI.
static bool RegisterJNI(JNIEnv* env);
@@ -82,7 +82,7 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothRemoteGattServiceAndroid
BluetoothRemoteGattServiceAndroid(BluetoothAdapterAndroid* adapter,
BluetoothDeviceAndroid* device,
- std::string instanceId);
+ const std::string& instanceId);
~BluetoothRemoteGattServiceAndroid() override;
// Populates |characteristics_| from Java objects if necessary.
@@ -99,7 +99,7 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothRemoteGattServiceAndroid
// here since |device_| owns this instance.
BluetoothDeviceAndroid* device_;
- // Instance ID, cached from Android object.
+ // Adapter unique instance ID.
std::string instanceId_;
// Map of characteristics, keyed by characteristic identifier.

Powered by Google App Engine
This is Rietveld 408576698