| Index: content/browser/bluetooth/web_bluetooth_service_impl.cc
|
| diff --git a/content/browser/bluetooth/web_bluetooth_service_impl.cc b/content/browser/bluetooth/web_bluetooth_service_impl.cc
|
| index f2fa91880cb70c87cd37ae5ebe7ee73796bf0017..ebce72107510ebf248bc59dc5c8a50c4b1cb6d9d 100644
|
| --- a/content/browser/bluetooth/web_bluetooth_service_impl.cc
|
| +++ b/content/browser/bluetooth/web_bluetooth_service_impl.cc
|
| @@ -721,7 +721,7 @@ void WebBluetoothServiceImpl::OnGetDeviceSuccess(
|
| const std::string device_id_for_origin =
|
| allowed_devices_map_.AddDevice(GetOrigin(), device_address, options);
|
|
|
| - VLOG(1) << "Device: " << device->GetName();
|
| + VLOG(1) << "Device: " << device->GetNameForDisplay();
|
| VLOG(1) << "UUIDs: ";
|
|
|
| mojo::Array<mojo::String> filtered_uuids;
|
| @@ -738,7 +738,8 @@ void WebBluetoothServiceImpl::OnGetDeviceSuccess(
|
| blink::mojom::WebBluetoothDevicePtr device_ptr =
|
| blink::mojom::WebBluetoothDevice::New();
|
| device_ptr->id = device_id_for_origin;
|
| - device_ptr->name = base::UTF16ToUTF8(device->GetName());
|
| + // TODO(615720): Use the upcoming GetName (was GetDeviceName).
|
| + device_ptr->name = base::UTF16ToUTF8(device->GetNameForDisplay());
|
| device_ptr->uuids = std::move(filtered_uuids);
|
|
|
| RecordRequestDeviceOutcome(UMARequestDeviceOutcome::SUCCESS);
|
|
|