Index: content/browser/cache_storage/cache_storage_dispatcher_host.cc |
diff --git a/content/browser/cache_storage/cache_storage_dispatcher_host.cc b/content/browser/cache_storage/cache_storage_dispatcher_host.cc |
index c34259ffc8e5c1cdb4ae1dc54f7c09a9a5849360..7d1d2293df9ac4ede10223192d6de246ef67d565 100644 |
--- a/content/browser/cache_storage/cache_storage_dispatcher_host.cc |
+++ b/content/browser/cache_storage/cache_storage_dispatcher_host.cc |
@@ -293,9 +293,14 @@ void CacheStorageDispatcherHost::OnCacheKeys( |
} |
CacheStorageCache* cache = it->second->value(); |
- cache->Keys(base::Bind(&CacheStorageDispatcherHost::OnCacheKeysCallback, this, |
- thread_id, request_id, |
- base::Passed(it->second->Clone()))); |
+ std::unique_ptr<ServiceWorkerFetchRequest> request_ptr( |
+ new ServiceWorkerFetchRequest(request.url, request.method, |
+ request.headers, request.referrer, |
+ request.is_reload)); |
+ cache->Keys( |
+ std::move(request_ptr), match_params, |
+ base::Bind(&CacheStorageDispatcherHost::OnCacheKeysCallback, this, |
+ thread_id, request_id, base::Passed(it->second->Clone()))); |
} |
void CacheStorageDispatcherHost::OnCacheBatch( |