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

Unified Diff: content/common/bluetooth/bluetooth_device.cc

Issue 1945823003: bluetooth: Remove BluetoothAdvertisementData (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@my-origin
Patch Set: Fix test 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
« no previous file with comments | « content/common/bluetooth/bluetooth_device.h ('k') | content/common/bluetooth/bluetooth_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/bluetooth/bluetooth_device.cc
diff --git a/content/common/bluetooth/bluetooth_device.cc b/content/common/bluetooth/bluetooth_device.cc
index c2b3bcbf355dd36684e586926d3708890c2ba5c2..4b07d329f4d7b54ee2c72b762fad03af277b469e 100644
--- a/content/common/bluetooth/bluetooth_device.cc
+++ b/content/common/bluetooth/bluetooth_device.cc
@@ -11,20 +11,14 @@ namespace content {
BluetoothDevice::BluetoothDevice()
: id(""),
name(base::string16()),
- tx_power(device::BluetoothDevice::kUnknownPower),
- rssi(device::BluetoothDevice::kUnknownPower),
uuids() {}
BluetoothDevice::BluetoothDevice(
const std::string& id,
const base::string16& name,
- int8_t tx_power,
- int8_t rssi,
const std::vector<std::string>& uuids)
: id(id),
name(name),
- tx_power(tx_power),
- rssi(rssi),
uuids(uuids) {}
BluetoothDevice::~BluetoothDevice() {
@@ -40,10 +34,4 @@ std::vector<std::string> BluetoothDevice::UUIDsFromBluetoothUUIDs(
return uuids;
}
-// static
-int8_t BluetoothDevice::ValidatePower(int16_t power) {
- return ((power < -127) || (power > 127)) ? BluetoothDevice::kUnknownPower
- : power;
-}
-
} // namespace content
« no previous file with comments | « content/common/bluetooth/bluetooth_device.h ('k') | content/common/bluetooth/bluetooth_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698