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

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

Issue 433793002: Introducing the WebServiceWorkerCache. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase on top of style nits cl Created 6 years, 3 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 bb8ebc7c186ccd32fec996e433ee7fad53b6e5ad..06a1af9aac6cf50731a767065b9e21584f98b287 100644
--- a/Source/modules/serviceworkers/CacheStorage.cpp
+++ b/Source/modules/serviceworkers/CacheStorage.cpp
@@ -58,6 +58,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));
m_resolver.clear();
}

Powered by Google App Engine
This is Rietveld 408576698