Index: Source/modules/geofencing/GeofencingError.h |
diff --git a/Source/modules/geofencing/GeofencingError.h b/Source/modules/geofencing/GeofencingError.h |
index a227b404f16dc5991e582ddccd5a20487302fad6..d64aa02fbb019747e143a05630ed101e2c194c25 100644 |
--- a/Source/modules/geofencing/GeofencingError.h |
+++ b/Source/modules/geofencing/GeofencingError.h |
@@ -7,6 +7,7 @@ |
#include "platform/heap/Handle.h" |
#include "public/platform/WebGeofencingError.h" |
+#include "wtf/OwnPtr.h" |
#include "wtf/PassOwnPtr.h" |
namespace blink { |
@@ -18,8 +19,8 @@ class GeofencingError { |
WTF_MAKE_NONCOPYABLE(GeofencingError); |
public: |
// For CallbackPromiseAdapter. |
- typedef WebGeofencingError WebType; |
- static DOMException* take(ScriptPromiseResolver*, PassOwnPtr<WebType> webError); |
+ using WebType = OwnPtr<WebGeofencingError>; |
+ static DOMException* take(ScriptPromiseResolver*, PassOwnPtr<WebGeofencingError> webError); |
private: |
GeofencingError() = delete; |