summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions
diff options
context:
space:
mode:
authorbryeung@chromium.org <bryeung@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-12 04:21:49 +0000
committerbryeung@chromium.org <bryeung@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-12 04:21:49 +0000
commit27564379ba406f03f7d8fe03c451193540dbca51 (patch)
treea27b34eb7dc8dba5e032d7c0e7b36d01df393269 /chrome/browser/extensions
parentee6db693a6f0916fa61dcd90407fb84afab8758f (diff)
downloadchromium_src-27564379ba406f03f7d8fe03c451193540dbca51.zip
chromium_src-27564379ba406f03f7d8fe03c451193540dbca51.tar.gz
chromium_src-27564379ba406f03f7d8fe03c451193540dbca51.tar.bz2
Fix getDevicesWithService.
The Value passing was wrong. This fixes it. TEST=my demo app outputs devices now BUG=none Review URL: http://codereview.chromium.org/10020056 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131925 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions')
-rw-r--r--chrome/browser/extensions/api/bluetooth/bluetooth_api.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/extensions/api/bluetooth/bluetooth_api.cc b/chrome/browser/extensions/api/bluetooth/bluetooth_api.cc
index c882d65..963a67d 100644
--- a/chrome/browser/extensions/api/bluetooth/bluetooth_api.cc
+++ b/chrome/browser/extensions/api/bluetooth/bluetooth_api.cc
@@ -50,7 +50,7 @@ bool BluetoothGetDevicesWithServiceFunction::RunImpl() {
BluetoothAdapter::ConstDeviceList devices = adapter()->GetDevices();
- ListValue* matches = new ListValue();
+ ListValue* matches = new ListValue;
for (BluetoothAdapter::ConstDeviceList::const_iterator i =
devices.begin(); i != devices.end(); ++i) {
const BluetoothDevice::ServiceList& services = (*i)->GetServices();
@@ -60,7 +60,7 @@ bool BluetoothGetDevicesWithServiceFunction::RunImpl() {
experimental_bluetooth::Device device;
device.name = UTF16ToUTF8((*i)->GetName());
device.address = (*i)->address();
- matches->Append(device.ToValue().get());
+ matches->Append(device.ToValue().release());
}
}
}