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

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

Issue 1234603003: CallbackPromiseAdapter types should be more compatible with WebCallbacks (1/3). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: retry! 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 b9ea0ecbded76e2ffe116668663bda8bf9893d6c..9ac73da389171a1a0de06433ec2ebf91f51f1fc9 100644
--- a/Source/modules/cachestorage/Cache.cpp
+++ b/Source/modules/cachestorage/Cache.cpp
@@ -20,6 +20,7 @@
#include "modules/fetch/GlobalFetch.h"
#include "modules/fetch/Request.h"
#include "modules/fetch/Response.h"
+#include "public/platform/WebPassOwnPtr.h"
#include "public/platform/WebServiceWorkerCache.h"
namespace blink {
@@ -95,10 +96,9 @@ public:
m_resolver.clear();
}
- // Ownership of |rawReason| must be passed.
- void onError(WebServiceWorkerCacheError* rawReason) override
+ void onError(WebPassOwnPtr<WebServiceWorkerCacheError> rawReason) override
{
- OwnPtr<WebServiceWorkerCacheError> reason = adoptPtr(rawReason);
+ OwnPtr<WebServiceWorkerCacheError> reason = rawReason.release();
if (*reason == WebServiceWorkerCacheErrorNotFound)
m_resolver->resolve(false);
else
« no previous file with comments | « Source/modules/bluetooth/ConvertWebVectorToArrayBuffer.h ('k') | Source/modules/cachestorage/CacheStorageError.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698