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

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: Created 5 years, 5 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 fff953336d27cb52a1f951a42b60fdd9ad655cf1..2c0991f47de4bad7e11512b5a46c785d315f8a3e 100644
--- a/Source/modules/cachestorage/Cache.cpp
+++ b/Source/modules/cachestorage/Cache.cpp
@@ -95,10 +95,9 @@ public:
m_resolver.clear();
}
- // Ownership of |rawReason| must be passed.
- void onError(WebServiceWorkerCacheError* rawReason) override
+ void onError(WebPrivateOwnPtr<WebServiceWorkerCacheError>&& rawReason) override
{
- OwnPtr<WebServiceWorkerCacheError> reason = adoptPtr(rawReason);
+ OwnPtr<WebServiceWorkerCacheError> reason = rawReason.release();
if (*reason == WebServiceWorkerCacheErrorNotFound)
m_resolver->resolve(false);
else

Powered by Google App Engine
This is Rietveld 408576698