Index: Source/modules/cachestorage/Cache.cpp |
diff --git a/Source/modules/cachestorage/Cache.cpp b/Source/modules/cachestorage/Cache.cpp |
index 0cd8c77253b26c17222e102c40b206cd0ac9b2ba..f20182812c416561703c33e3208f10e2ab95f8b1 100644 |
--- a/Source/modules/cachestorage/Cache.cpp |
+++ b/Source/modules/cachestorage/Cache.cpp |
@@ -96,13 +96,12 @@ public: |
m_resolver.clear(); |
} |
- void onError(WebPassOwnPtr<WebServiceWorkerCacheError> rawReason) override |
+ void onError(WebServiceWorkerCacheError reason) override |
{ |
- OwnPtr<WebServiceWorkerCacheError> reason = rawReason.release(); |
- if (*reason == WebServiceWorkerCacheErrorNotFound) |
+ if (reason == WebServiceWorkerCacheErrorNotFound) |
m_resolver->resolve(false); |
else |
- m_resolver->reject(CacheStorageError::createException(*reason)); |
+ m_resolver->reject(CacheStorageError::createException(reason)); |
m_resolver.clear(); |
} |