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

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

Issue 1234603003: CallbackPromiseAdapter types should be more compatible with WebCallbacks (1/3). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 5 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/BluetoothDevice.h
diff --git a/Source/modules/bluetooth/BluetoothDevice.h b/Source/modules/bluetooth/BluetoothDevice.h
index aa67afa1eebb71345a61e606379d298a86a22758..fa40a92c1483fac6d474cc8a6910fc22d26f0899 100644
--- a/Source/modules/bluetooth/BluetoothDevice.h
+++ b/Source/modules/bluetooth/BluetoothDevice.h
@@ -8,6 +8,7 @@
#include "bindings/core/v8/ScriptWrappable.h"
#include "platform/heap/Heap.h"
#include "public/platform/modules/bluetooth/WebBluetoothDevice.h"
+#include "wtf/OwnPtr.h"
#include "wtf/PassOwnPtr.h"
#include "wtf/text/WTFString.h"
@@ -33,7 +34,7 @@ public:
ScriptPromise connectGATT(ScriptState*);
// Interface required by CallbackPromiseAdapter:
- typedef WebBluetoothDevice WebType;
+ using WebType = OwnPtr<WebBluetoothDevice>;
static BluetoothDevice* take(ScriptPromiseResolver*, PassOwnPtr<WebBluetoothDevice>);
// Interface required by Garbage Collection:

Powered by Google App Engine
This is Rietveld 408576698