Index: trunk/src/chrome/browser/extensions/api/bluetooth/bluetooth_api_utils.cc |
=================================================================== |
--- trunk/src/chrome/browser/extensions/api/bluetooth/bluetooth_api_utils.cc (revision 261569) |
+++ trunk/src/chrome/browser/extensions/api/bluetooth/bluetooth_api_utils.cc (working copy) |
@@ -112,12 +112,7 @@ |
out->paired.reset(new bool(device.IsPaired())); |
out->connected.reset(new bool(device.IsConnected())); |
- std::vector<std::string>* string_uuids = new std::vector<std::string>(); |
- const device::BluetoothDevice::UUIDList& uuids = device.GetUUIDs(); |
- for (device::BluetoothDevice::UUIDList::const_iterator iter = uuids.begin(); |
- iter != uuids.end(); ++iter) |
- string_uuids->push_back(iter->canonical_value()); |
- out->uuids.reset(string_uuids); |
+ out->uuids.reset(new std::vector<std::string>(device.GetUUIDs())); |
} |
void PopulateAdapterState(const device::BluetoothAdapter& adapter, |