Index: Source/modules/serviceworkers/CacheStorage.cpp |
diff --git a/Source/modules/serviceworkers/CacheStorage.cpp b/Source/modules/serviceworkers/CacheStorage.cpp |
index a460b9d2457f2feb616db390af5c4152ec9445db..c7614f41878b5d1130decd803c97d0cf94dd9f3a 100644 |
--- a/Source/modules/serviceworkers/CacheStorage.cpp |
+++ b/Source/modules/serviceworkers/CacheStorage.cpp |
@@ -174,7 +174,7 @@ private: |
CacheStorage* CacheStorage::create(WebServiceWorkerCacheStorage* webCacheStorage) |
{ |
- return new CacheStorage(webCacheStorage); |
+ return new CacheStorage(adoptPtr(webCacheStorage)); |
} |
ScriptPromise CacheStorage::open(ScriptState* scriptState, const String& cacheName) |
@@ -273,7 +273,7 @@ DEFINE_TRACE(CacheStorage) |
visitor->trace(m_nameToCacheMap); |
} |
-CacheStorage::CacheStorage(WebServiceWorkerCacheStorage* webCacheStorage) |
+CacheStorage::CacheStorage(PassOwnPtr<WebServiceWorkerCacheStorage> webCacheStorage) |
: m_webCacheStorage(webCacheStorage) |
{ |
} |