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

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

Issue 1240763002: CallbackPromiseAdapter types should be more compatible with WebCallbacks (3/3). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase 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/bindings/core/v8/CallbackPromiseAdapter.h ('k') | Source/modules/bluetooth/BluetoothError.cpp » ('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 031cf10663fd7115e94dcd6af83624c53c634b9f..91286ca6a54192b170e292406202f2782dde51d8 100644
--- a/Source/modules/bluetooth/BluetoothError.h
+++ b/Source/modules/bluetooth/BluetoothError.h
@@ -7,8 +7,6 @@
#include "platform/heap/Handle.h"
#include "public/platform/modules/bluetooth/WebBluetoothError.h"
-#include "wtf/OwnPtr.h"
-#include "wtf/PassOwnPtr.h"
namespace blink {
@@ -21,8 +19,8 @@ class BluetoothError {
WTF_MAKE_NONCOPYABLE(BluetoothError);
public:
// Interface required by CallbackPromiseAdapter:
- using WebType = OwnPtr<WebBluetoothError>;
- static DOMException* take(ScriptPromiseResolver*, PassOwnPtr<WebBluetoothError>);
+ using WebType = const WebBluetoothError&;
+ static DOMException* take(ScriptPromiseResolver*, const WebBluetoothError&);
private:
BluetoothError() = delete;
« no previous file with comments | « Source/bindings/core/v8/CallbackPromiseAdapter.h ('k') | Source/modules/bluetooth/BluetoothError.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698