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

Unified Diff: device/bluetooth/bluetooth_device_android.cc

Issue 1395783005: bluetooth: android: BluetoothRemoteGattServiceAndroid::GetUUID (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_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;

Powered by Google App Engine
This is Rietveld 408576698