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

Unified Diff: Source/modules/bluetooth/BluetoothGATTService.h

Issue 1234603003: CallbackPromiseAdapter types should be more compatible with WebCallbacks (1/3). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: retry! Created 5 years, 4 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
Index: Source/modules/bluetooth/BluetoothGATTService.h
diff --git a/Source/modules/bluetooth/BluetoothGATTService.h b/Source/modules/bluetooth/BluetoothGATTService.h
index 0c00daa19dbeb2fd513f04e4ed86d4af8dfb7dbb..f547dc8e58919bc60148735b1d698cdf38d0cb3e 100644
--- a/Source/modules/bluetooth/BluetoothGATTService.h
+++ b/Source/modules/bluetooth/BluetoothGATTService.h
@@ -9,6 +9,7 @@
#include "bindings/modules/v8/UnionTypesModules.h"
#include "platform/heap/Handle.h"
#include "public/platform/modules/bluetooth/WebBluetoothGATTService.h"
+#include "wtf/OwnPtr.h"
#include "wtf/PassOwnPtr.h"
#include "wtf/text/WTFString.h"
@@ -34,7 +35,7 @@ public:
explicit BluetoothGATTService(PassOwnPtr<WebBluetoothGATTService>);
// Interface required by CallbackPromiseAdapter:
- typedef WebBluetoothGATTService WebType;
+ using WebType = OwnPtr<WebBluetoothGATTService>;
static BluetoothGATTService* take(ScriptPromiseResolver*, PassOwnPtr<WebBluetoothGATTService>);
// Interface required by garbage collection.
« no previous file with comments | « Source/modules/bluetooth/BluetoothGATTRemoteServer.h ('k') | Source/modules/bluetooth/ConvertWebVectorToArrayBuffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698