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. |