Index: third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.cpp |
diff --git a/third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.cpp b/third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.cpp |
index da50dfd47cc565450139071de4a04bef57c9b980..2129c9893c4731483c4d78dfacf402b381c8ca24 100644 |
--- a/third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.cpp |
+++ b/third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.cpp |
@@ -19,6 +19,8 @@ namespace blink { |
BluetoothDevice::BluetoothDevice(PassOwnPtr<WebBluetoothDevice> webDevice) |
: m_webDevice(webDevice) |
+ , m_adData(BluetoothAdvertisingData::create(m_webDevice->txPower, |
+ m_webDevice->rssi)) |
{ |
} |
@@ -28,6 +30,11 @@ BluetoothDevice* BluetoothDevice::take(ScriptPromiseResolver*, PassOwnPtr<WebBlu |
return new BluetoothDevice(webDevice); |
} |
+DEFINE_TRACE(BluetoothDevice) |
+{ |
+ visitor->trace(m_adData); |
+} |
+ |
unsigned BluetoothDevice::deviceClass(bool& isNull) |
{ |
isNull = false; |