Index: content/renderer/cache_storage/cache_storage_dispatcher.cc |
diff --git a/content/renderer/cache_storage/cache_storage_dispatcher.cc b/content/renderer/cache_storage/cache_storage_dispatcher.cc |
index a490e4c69b583df306ca1a6e00a3ce61de38c25c..1fefe44a571e1a6651bdeac63d876b80079030ab 100644 |
--- a/content/renderer/cache_storage/cache_storage_dispatcher.cc |
+++ b/content/renderer/cache_storage/cache_storage_dispatcher.cc |
@@ -177,7 +177,7 @@ class CacheStorageDispatcher::WebCache : public blink::WebServiceWorkerCache { |
query_params); |
} |
void dispatchKeys(CacheWithRequestsCallbacks* callbacks, |
- const blink::WebServiceWorkerRequest* request, |
+ const blink::WebServiceWorkerRequest& request, |
const QueryParams& query_params) override { |
if (!dispatcher_) |
return; |
@@ -610,15 +610,14 @@ void CacheStorageDispatcher::dispatchMatchAllForCache( |
void CacheStorageDispatcher::dispatchKeysForCache( |
int cache_id, |
blink::WebServiceWorkerCache::CacheWithRequestsCallbacks* callbacks, |
- const blink::WebServiceWorkerRequest* request, |
+ const blink::WebServiceWorkerRequest& request, |
const blink::WebServiceWorkerCache::QueryParams& query_params) { |
int request_id = cache_keys_callbacks_.Add(callbacks); |
cache_keys_times_[request_id] = base::TimeTicks::Now(); |
Send(new CacheStorageHostMsg_CacheKeys( |
CurrentWorkerId(), request_id, cache_id, |
- request ? FetchRequestFromWebRequest(*request) |
- : ServiceWorkerFetchRequest(), |
+ FetchRequestFromWebRequest(request), |
QueryParamsFromWebQueryParams(query_params))); |
} |