| Index: Source/modules/bluetooth/BluetoothGATTService.cpp
|
| diff --git a/Source/modules/bluetooth/BluetoothGATTService.cpp b/Source/modules/bluetooth/BluetoothGATTService.cpp
|
| index 620b1bce5d390a9052d02a5dfc1e901028dadfa5..bbe5c0d7c54819e2a3362cb7e067272944072fa1 100644
|
| --- a/Source/modules/bluetooth/BluetoothGATTService.cpp
|
| +++ b/Source/modules/bluetooth/BluetoothGATTService.cpp
|
| @@ -10,7 +10,7 @@
|
|
|
| namespace blink {
|
|
|
| -BluetoothGATTService::BluetoothGATTService(const WebBluetoothGATTService& webService)
|
| +BluetoothGATTService::BluetoothGATTService(PassOwnPtr<WebBluetoothGATTService> webService)
|
| : m_webService(webService)
|
| {
|
| }
|
| @@ -20,8 +20,7 @@ BluetoothGATTService* BluetoothGATTService::take(ScriptPromiseResolver*, WebBlue
|
| if (!webServiceRawPointer) {
|
| return nullptr;
|
| }
|
| - OwnPtr<WebBluetoothGATTService> webService = adoptPtr(webServiceRawPointer);
|
| - return new BluetoothGATTService(*webService);
|
| + return new BluetoothGATTService(adoptPtr(webServiceRawPointer));
|
| }
|
|
|
| void BluetoothGATTService::dispose(WebBluetoothGATTService* webService)
|
|
|