Commit f1a1ccd0 authored by Gyuyoung Kim's avatar Gyuyoung Kim Committed by Commit Bot

Inline static Create() factory functions from renderer/modules/bluetooth

This CL removes Create() factory functions in
//third_partyb/blink/renderer/modules/bluetooth as much as possible,
and makes all callers use MakeGarbageCollected<Foo> instead.

This CL removes below factory functions,
  - BluetoothRemoteGATTDescriptor::Create

Bug: 939691
Change-Id: I439ce17703a6a0a37ac1d690dd26c14f1cf467ab
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1950044Reviewed-by: default avatarGiovanni Ortuño Urquidi <ortuno@chromium.org>
Commit-Queue: Gyuyoung Kim <gyuyoung@igalia.com>
Cr-Commit-Position: refs/heads/master@{#721813}
parent fb1832a7
......@@ -22,16 +22,6 @@ BluetoothRemoteGATTDescriptor::BluetoothRemoteGATTDescriptor(
BluetoothRemoteGATTCharacteristic* characteristic)
: descriptor_(std::move(descriptor)), characteristic_(characteristic) {}
BluetoothRemoteGATTDescriptor* BluetoothRemoteGATTDescriptor::Create(
mojom::blink::WebBluetoothRemoteGATTDescriptorPtr descriptor,
BluetoothRemoteGATTCharacteristic* characteristic) {
BluetoothRemoteGATTDescriptor* result =
MakeGarbageCollected<BluetoothRemoteGATTDescriptor>(std::move(descriptor),
characteristic);
return result;
}
void BluetoothRemoteGATTDescriptor::ReadValueCallback(
ScriptPromiseResolver* resolver,
mojom::blink::WebBluetoothResult result,
......
......@@ -33,10 +33,6 @@ class BluetoothRemoteGATTDescriptor final : public ScriptWrappable {
mojom::blink::WebBluetoothRemoteGATTDescriptorPtr,
BluetoothRemoteGATTCharacteristic*);
static BluetoothRemoteGATTDescriptor* Create(
mojom::blink::WebBluetoothRemoteGATTDescriptorPtr,
BluetoothRemoteGATTCharacteristic*);
// IDL exposed interface:
BluetoothRemoteGATTCharacteristic* characteristic() {
return characteristic_;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment