Index: third_party/WebKit/Source/modules/cachestorage/CacheTest.cpp |
diff --git a/third_party/WebKit/Source/modules/cachestorage/CacheTest.cpp b/third_party/WebKit/Source/modules/cachestorage/CacheTest.cpp |
index 0d39207686eb2f39d9252a6c3c0b517d7a3aa349..17a4d7cb1ad082d581f5d12afd637942f21e896e 100644 |
--- a/third_party/WebKit/Source/modules/cachestorage/CacheTest.cpp |
+++ b/third_party/WebKit/Source/modules/cachestorage/CacheTest.cpp |
@@ -131,11 +131,11 @@ public: |
return callbacks->onError(m_error); |
} |
- void dispatchKeys(CacheWithRequestsCallbacks* callbacks, const WebServiceWorkerRequest* webRequest, const QueryParams& queryParams) override |
+ void dispatchKeys(CacheWithRequestsCallbacks* callbacks, const WebServiceWorkerRequest& webRequest, const QueryParams& queryParams) override |
{ |
m_lastErrorWebCacheMethodCalled = "dispatchKeys"; |
- if (webRequest) { |
- checkUrlIfProvided(webRequest->url()); |
+ if (!webRequest.url().isEmpty()) { |
+ checkUrlIfProvided(webRequest.url()); |
checkQueryParamsIfProvided(queryParams); |
} |
@@ -513,7 +513,7 @@ public: |
KeysTestCache(WebVector<WebServiceWorkerRequest>& requests) |
: m_requests(requests) { } |
- void dispatchKeys(CacheWithRequestsCallbacks* callbacks, const WebServiceWorkerRequest* webRequest, const QueryParams& queryParams) override |
+ void dispatchKeys(CacheWithRequestsCallbacks* callbacks, const WebServiceWorkerRequest& webRequest, const QueryParams& queryParams) override |
{ |
std::unique_ptr<CacheWithRequestsCallbacks> ownedCallbacks(wrapUnique(callbacks)); |
return callbacks->onSuccess(m_requests); |