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

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

Issue 433793002: Introducing the WebServiceWorkerCache. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: partial remediation 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 294cfc65656d88cdebc95788008e7d90eb4610b3..1861afe72facef1c94c46429e74b3b0316ff8ef8 100644
--- a/Source/modules/serviceworkers/CacheStorage.cpp
+++ b/Source/modules/serviceworkers/CacheStorage.cpp
@@ -59,6 +59,11 @@ public:
virtual void onSuccess(WebServiceWorkerCache* cache) OVERRIDE
{
+ // FIXME: Remove this once content's WebServiceWorkerCache implementation has landed.
+ if (!cache) {
+ m_resolver->reject("not implemented");
+ return;
+ }
m_resolver->resolve(Cache::fromWebServiceWorkerCache(cache));
}

Powered by Google App Engine
This is Rietveld 408576698