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

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

Issue 380923002: Introducing the WebServiceWorkerCacheStorage. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: api fixes 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/ServiceWorkerGlobalScope.cpp
diff --git a/Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp b/Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp
index 71fa54313c1989180d64ec0c5aaa833d1502dba7..33f9053de8ac1baca970aca083dd9bcefec4ba50 100644
--- a/Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp
+++ b/Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp
@@ -91,7 +91,7 @@ String ServiceWorkerGlobalScope::scope(ExecutionContext* context)
PassRefPtr<CacheStorage> ServiceWorkerGlobalScope::caches(ExecutionContext* context)
{
if (!m_cacheStorage)
- m_cacheStorage = CacheStorage::create();
+ m_cacheStorage = CacheStorage::create(ServiceWorkerGlobalScopeClient::from(context)->cacheStorage());
return m_cacheStorage;
}

Powered by Google App Engine
This is Rietveld 408576698