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

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

Issue 434543002: Introducing the ServiceWorker Cache object. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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/serviceworkers/FetchStores.cpp
diff --git a/Source/modules/serviceworkers/FetchStores.cpp b/Source/modules/serviceworkers/FetchStores.cpp
index ec398cd67b66f35075540445ceb53af1c46754fe..870bbcdef3814a7ae710d8adb2d0da3d9b1e5be7 100644
--- a/Source/modules/serviceworkers/FetchStores.cpp
+++ b/Source/modules/serviceworkers/FetchStores.cpp
@@ -7,6 +7,7 @@
#include "bindings/core/v8/ScriptPromiseResolver.h"
#include "bindings/core/v8/ScriptState.h"
+#include "modules/serviceworkers/FetchStore.h"
#include "public/platform/WebServiceWorkerFetchStores.h"
#include "public/platform/WebServiceWorkerFetchStoresError.h"
@@ -56,9 +57,7 @@ public:
virtual void onSuccess(int* fetchStoreID) OVERRIDE
{
- // TODO: There should be a blink side of the Cache object implementation here, rather than
- // this nonsensical pass through.
- m_resolver->resolve(*fetchStoreID);
+ m_resolver->resolve(FetchStore::create(*fetchStoreID));
}
virtual void onError(WebServiceWorkerFetchStoresError* reason) OVERRIDE
« Source/modules/serviceworkers/FetchStore.idl ('K') | « Source/modules/serviceworkers/FetchStore.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698