Index: extensions/browser/api/bluetooth/bluetooth_api_utils.cc |
diff --git a/extensions/browser/api/bluetooth/bluetooth_api_utils.cc b/extensions/browser/api/bluetooth/bluetooth_api_utils.cc |
index 1b0c61e64e886010ca239c5f866160f168b9f775..5176c684203092ba11100a1de010fd4a65b8b97a 100644 |
--- a/extensions/browser/api/bluetooth/bluetooth_api_utils.cc |
+++ b/extensions/browser/api/bluetooth/bluetooth_api_utils.cc |
@@ -94,7 +94,8 @@ namespace bluetooth { |
void BluetoothDeviceToApiDevice(const device::BluetoothDevice& device, |
Device* out) { |
out->address = device.GetAddress(); |
- out->name.reset(new std::string(base::UTF16ToUTF8(device.GetName()))); |
+ out->name.reset( |
+ new std::string(base::UTF16ToUTF8(device.GetNameForDisplay()))); |
out->device_class.reset(new int(device.GetBluetoothClass())); |
// Only include the Device ID members when one exists for the device, and |