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

Unified Diff: Source/modules/serviceworkers/CacheStorage.cpp

Issue 434543002: Introducing the ServiceWorker Cache object. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remediate and update to spec Created 6 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/serviceworkers/CacheStorage.cpp
diff --git a/Source/modules/serviceworkers/CacheStorage.cpp b/Source/modules/serviceworkers/CacheStorage.cpp
index f734d13ee545ba21ded6f4c528c9ebec56f6ae14..0c5bca5f0efc90cb7ae76bfdb829c04df3fdec81 100644
--- a/Source/modules/serviceworkers/CacheStorage.cpp
+++ b/Source/modules/serviceworkers/CacheStorage.cpp
@@ -7,6 +7,7 @@
#include "bindings/core/v8/ScriptPromiseResolver.h"
#include "bindings/core/v8/ScriptState.h"
+#include "modules/serviceworkers/Cache.h"
#include "public/platform/WebServiceWorkerCacheError.h"
#include "public/platform/WebServiceWorkerCacheStorage.h"
@@ -58,9 +59,7 @@ public:
virtual void onSuccess(WebServiceWorkerCache* cache) OVERRIDE
{
- // FIXME: There should be a blink side of the Cache object implementation here, rather than
- // this nonsensical return.
- m_resolver->resolve("succesfully returned a cache");
+ m_resolver->resolve(Cache::fromWebServiceWorkerCache(cache));
}
virtual void onError(WebServiceWorkerCacheError* reason) OVERRIDE
« Source/modules/serviceworkers/Cache.cpp ('K') | « Source/modules/serviceworkers/Cache.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698