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

Unified Diff: device/bluetooth/bluetooth_device_android.cc

Issue 1572873002: bluetooth: android: Code cleanup fixing comments, typos, simplified names. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comma Created 4 years, 11 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 ebd78318e52c0bef7a4338feb9edc3a81dcf5bfa..55c883bdc0644bfdf1ae17a940d89acbdc9271d8 100644
--- a/device/bluetooth/bluetooth_device_android.cc
+++ b/device/bluetooth/bluetooth_device_android.cc
@@ -236,20 +236,20 @@ void BluetoothDeviceAndroid::OnGattServicesDiscovered(
void BluetoothDeviceAndroid::CreateGattRemoteService(
JNIEnv* env,
const JavaParamRef<jobject>& caller,
- const JavaParamRef<jstring>& instanceId,
+ const JavaParamRef<jstring>& instance_id,
const JavaParamRef<jobject>&
bluetooth_gatt_service_wrapper) { // BluetoothGattServiceWrapper
- std::string instanceIdString =
- base::android::ConvertJavaStringToUTF8(env, instanceId);
+ std::string instance_id_string =
+ base::android::ConvertJavaStringToUTF8(env, instance_id);
- if (gatt_services_.contains(instanceIdString))
+ if (gatt_services_.contains(instance_id_string))
return;
BluetoothDevice::GattServiceMap::iterator service_iterator =
- gatt_services_.set(instanceIdString,
+ gatt_services_.set(instance_id_string,
BluetoothRemoteGattServiceAndroid::Create(
GetAdapter(), this, bluetooth_gatt_service_wrapper,
- instanceIdString, j_device_.obj()));
+ instance_id_string, j_device_.obj()));
FOR_EACH_OBSERVER(BluetoothAdapter::Observer, GetAdapter()->GetObservers(),
GattServiceAdded(adapter_, this, service_iterator->second));
« no previous file with comments | « device/bluetooth/bluetooth_device_android.h ('k') | device/bluetooth/bluetooth_gatt_characteristic_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698