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

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

Issue 735893002: Add GetConnectionInfo function for BluetoothDevice, replacing the existing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix compile errors on other platforms Created 5 years, 11 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 58a5d0a9d0e9e07a349719a434710f37e8c21f6f..05bd0765245fab6e495ec3d7c27769220a679acf 100644
--- a/extensions/browser/api/bluetooth/bluetooth_api_utils.cc
+++ b/extensions/browser/api/bluetooth/bluetooth_api_utils.cc
@@ -112,19 +112,6 @@ void BluetoothDeviceToApiDevice(const device::BluetoothDevice& device,
out->paired.reset(new bool(device.IsPaired()));
out->connected.reset(new bool(device.IsConnected()));
- int rssi = device.GetRSSI();
- if (rssi != BluetoothDevice::kUnknownPower)
- out->rssi.reset(new int(rssi));
-
- if (*out->connected) {
- int current_transmit_power = device.GetCurrentHostTransmitPower();
- if (current_transmit_power != BluetoothDevice::kUnknownPower)
- out->current_host_transmit_power.reset(new int(current_transmit_power));
- int maximum_transmit_power = device.GetMaximumHostTransmitPower();
- if (maximum_transmit_power != BluetoothDevice::kUnknownPower)
- out->maximum_host_transmit_power.reset(new int(maximum_transmit_power));
- }
-
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();
« 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