Index: device/bluetooth/bluetooth_device_android.cc |
diff --git a/device/bluetooth/bluetooth_device_android.cc b/device/bluetooth/bluetooth_device_android.cc |
index 1066ac4b39f822d44debff43ea26f974beaa9bfc..fccd24fb682780fa15fd134fae97db342178aeca 100644 |
--- a/device/bluetooth/bluetooth_device_android.cc |
+++ b/device/bluetooth/bluetooth_device_android.cc |
@@ -226,11 +226,12 @@ void BluetoothDeviceAndroid::OnConnectionStateChange(JNIEnv* env, |
void BluetoothDeviceAndroid::CreateGattRemoteService( |
JNIEnv* env, |
jobject caller, |
- int32_t instanceId, |
+ const jstring& instanceId, |
jobject bluetooth_gatt_service_wrapper // Java Type: |
// BluetoothGattServiceWrapper |
) { |
- std::string instanceIdString = base::StringPrintf("%d", instanceId); |
+ std::string instanceIdString = |
+ base::android::ConvertJavaStringToUTF8(env, instanceId); |
if (gatt_services_.contains(instanceIdString)) |
return; |