Chromium Code Reviews| Index: device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothDevice.java |
| diff --git a/device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothDevice.java b/device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothDevice.java |
| index b7fd6a1d20a13303ea64a4666bfd2c94a8962ede..2bc0b91205c2018f3a02446653406444527407c2 100644 |
| --- a/device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothDevice.java |
| +++ b/device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothDevice.java |
| @@ -104,6 +104,12 @@ final class ChromeBluetoothDevice { |
| return mDevice.getAddress(); |
| } |
| + // Implements BluetoothDeviceAndroid::GetName. |
| + @CalledByNative |
| + private String getName() { |
| + return mDevice.getName(); |
|
ortuno
2016/07/14 21:11:41
nit optional: hmm I wonder if we should explicitly
scheib
2016/07/16 00:21:36
I think no, getName is documented, and I don't thi
|
| + } |
| + |
| // Implements BluetoothDeviceAndroid::IsPaired. |
| @CalledByNative |
| private boolean isPaired() { |
| @@ -138,12 +144,6 @@ final class ChromeBluetoothDevice { |
| if (mBluetoothGatt != null) mBluetoothGatt.disconnect(); |
| } |
| - // Implements BluetoothDeviceAndroid::GetDeviceName. |
| - @CalledByNative |
| - private String getDeviceName() { |
| - return mDevice.getName(); |
| - } |
| - |
| // Implements callbacks related to a GATT connection. |
| private class BluetoothGattCallbackImpl extends Wrappers.BluetoothGattCallbackWrapper { |
| @Override |