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

Unified Diff: device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothDevice.java

Issue 2009753002: bluetooth: Make public BluetoothDevice::GetName method. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: split out name/alias Created 4 years, 5 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/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();
+ }
+
// 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

Powered by Google App Engine
This is Rietveld 408576698