| Index: device/bluetooth/bluetooth_device_android.cc
|
| diff --git a/device/bluetooth/bluetooth_device_android.cc b/device/bluetooth/bluetooth_device_android.cc
|
| index c9cde3fa59880a5a34560fa2f7aa11660767c8fd..04a01298fddc82c5b4fd1a00239393822788f2e1 100644
|
| --- a/device/bluetooth/bluetooth_device_android.cc
|
| +++ b/device/bluetooth/bluetooth_device_android.cc
|
| @@ -8,6 +8,7 @@
|
| #include "base/android/jni_android.h"
|
| #include "base/android/jni_string.h"
|
| #include "base/metrics/histogram_macros.h"
|
| +#include "base/stl_util.h"
|
| #include "base/strings/stringprintf.h"
|
| #include "device/bluetooth/bluetooth_adapter_android.h"
|
| #include "device/bluetooth/bluetooth_remote_gatt_service_android.h"
|
| @@ -246,7 +247,7 @@ void BluetoothDeviceAndroid::CreateGattRemoteService(
|
| std::string instance_id_string =
|
| base::android::ConvertJavaStringToUTF8(env, instance_id);
|
|
|
| - if (gatt_services_.find(instance_id_string) != gatt_services_.end())
|
| + if (base::ContainsKey(gatt_services_, instance_id_string))
|
| return;
|
|
|
| std::unique_ptr<BluetoothRemoteGattServiceAndroid> service =
|
|
|