summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/modules/bluetooth/bluetooth_device.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/modules/bluetooth/bluetooth_device.cc')
-rw-r--r--chromium/third_party/blink/renderer/modules/bluetooth/bluetooth_device.cc12
1 files changed, 2 insertions, 10 deletions
diff --git a/chromium/third_party/blink/renderer/modules/bluetooth/bluetooth_device.cc b/chromium/third_party/blink/renderer/modules/bluetooth/bluetooth_device.cc
index dbc56440ff9..d69d3a29ded 100644
--- a/chromium/third_party/blink/renderer/modules/bluetooth/bluetooth_device.cc
+++ b/chromium/third_party/blink/renderer/modules/bluetooth/bluetooth_device.cc
@@ -24,20 +24,12 @@ BluetoothDevice::BluetoothDevice(ExecutionContext* context,
mojom::blink::WebBluetoothDevicePtr device,
Bluetooth* bluetooth)
: ContextLifecycleObserver(context),
- attribute_instance_map_(new BluetoothAttributeInstanceMap(this)),
+ attribute_instance_map_(
+ MakeGarbageCollected<BluetoothAttributeInstanceMap>(this)),
device_(std::move(device)),
gatt_(BluetoothRemoteGATTServer::Create(context, this)),
bluetooth_(bluetooth) {}
-// static
-BluetoothDevice* BluetoothDevice::Take(
- ScriptPromiseResolver* resolver,
- mojom::blink::WebBluetoothDevicePtr device,
- Bluetooth* bluetooth) {
- return new BluetoothDevice(resolver->GetExecutionContext(), std::move(device),
- bluetooth);
-}
-
BluetoothRemoteGATTService* BluetoothDevice::GetOrCreateRemoteGATTService(
mojom::blink::WebBluetoothRemoteGATTServicePtr service,
bool is_primary,