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

Unified Diff: Source/modules/bluetooth/BluetoothError.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
« no previous file with comments | « Source/modules/bluetooth/BluetoothDevice.h ('k') | Source/modules/bluetooth/BluetoothGATTCharacteristic.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/bluetooth/BluetoothError.h
diff --git a/Source/modules/bluetooth/BluetoothError.h b/Source/modules/bluetooth/BluetoothError.h
index df7d1044a4fe6bd7f9ab57e3ea4dfdfe887dae17..031cf10663fd7115e94dcd6af83624c53c634b9f 100644
--- a/Source/modules/bluetooth/BluetoothError.h
+++ b/Source/modules/bluetooth/BluetoothError.h
@@ -7,6 +7,7 @@
#include "platform/heap/Handle.h"
#include "public/platform/modules/bluetooth/WebBluetoothError.h"
+#include "wtf/OwnPtr.h"
#include "wtf/PassOwnPtr.h"
namespace blink {
@@ -20,7 +21,7 @@ class BluetoothError {
WTF_MAKE_NONCOPYABLE(BluetoothError);
public:
// Interface required by CallbackPromiseAdapter:
- typedef WebBluetoothError WebType;
+ using WebType = OwnPtr<WebBluetoothError>;
static DOMException* take(ScriptPromiseResolver*, PassOwnPtr<WebBluetoothError>);
private:
« no previous file with comments | « Source/modules/bluetooth/BluetoothDevice.h ('k') | Source/modules/bluetooth/BluetoothGATTCharacteristic.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698