| Index: Source/modules/cachestorage/CacheStorageError.h
|
| diff --git a/Source/modules/cachestorage/CacheStorageError.h b/Source/modules/cachestorage/CacheStorageError.h
|
| index 505b8ae2285b5d5a2a1acca673afb9a158ecc763..8affea7eac467c2921e90073601d8ae58e63ec29 100644
|
| --- a/Source/modules/cachestorage/CacheStorageError.h
|
| +++ b/Source/modules/cachestorage/CacheStorageError.h
|
| @@ -7,8 +7,6 @@
|
|
|
| #include "public/platform/WebServiceWorkerCacheError.h"
|
| #include "wtf/Noncopyable.h"
|
| -#include "wtf/OwnPtr.h"
|
| -#include "wtf/PassOwnPtr.h"
|
|
|
| namespace blink {
|
|
|
| @@ -20,8 +18,8 @@ class CacheStorageError {
|
| public:
|
| // For CallbackPromiseAdapter. Ownership of a given error is not
|
| // transferred.
|
| - using WebType = OwnPtr<WebServiceWorkerCacheError>;
|
| - static DOMException* take(ScriptPromiseResolver*, PassOwnPtr<WebServiceWorkerCacheError> webError);
|
| + using WebType = WebServiceWorkerCacheError;
|
| + static DOMException* take(ScriptPromiseResolver*, WebServiceWorkerCacheError webError) { return createException(webError); }
|
|
|
| static DOMException* createException(WebServiceWorkerCacheError webError);
|
| };
|
|
|