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

Unified Diff: Source/modules/cachestorage/Cache.cpp

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
Index: Source/modules/cachestorage/Cache.cpp
diff --git a/Source/modules/cachestorage/Cache.cpp b/Source/modules/cachestorage/Cache.cpp
index 9ac73da389171a1a0de06433ec2ebf91f51f1fc9..90a26599aad2c3e175d76962556391d177928f2a 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();
}
« no previous file with comments | « Source/modules/bluetooth/ConvertWebVectorToArrayBuffer.cpp ('k') | Source/modules/cachestorage/CacheStorageError.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698