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

Unified Diff: extensions/browser/api/bluetooth/bluetooth_api_utils.cc

Issue 2017393002: bluetooth: Rename device's GetName to GetNameForDisplay (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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: 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
« no previous file with comments | « device/bluetooth/test/mock_bluetooth_device.cc ('k') | extensions/browser/api/bluetooth/bluetooth_apitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698