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

Unified Diff: trunk/src/chrome/browser/extensions/api/bluetooth/bluetooth_api_utils.cc

Issue 224763003: Revert 261566 "device/bluetooth: Rename device::bluetooth_utils:..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 9 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: 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,

Powered by Google App Engine
This is Rietveld 408576698