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 cbb59011804eabdfb58ddf04afcacea16ea8ef2e..291b13edeb9b2b5c96f030dfed2021c4ff9373a4 100644 |
--- a/third_party/WebKit/Source/modules/cachestorage/CacheTest.cpp |
+++ b/third_party/WebKit/Source/modules/cachestorage/CacheTest.cpp |
@@ -427,7 +427,7 @@ TEST_F(CacheStorageTest, BatchOperationArguments) |
WebServiceWorkerResponse webResponse; |
webResponse.setURL(KURL(ParsedURLString, url)); |
- Response* response = Response::create(getExecutionContext(), webResponse); |
+ Response* response = Response::create(getScriptState(), webResponse); |
WebVector<WebServiceWorkerCache::BatchOperation> expectedDeleteOperations(size_t(1)); |
{ |
@@ -459,7 +459,7 @@ TEST_F(CacheStorageTest, BatchOperationArguments) |
request = newRequestFromUrl(url); |
ASSERT(request); |
- ScriptPromise putResult = cache->put(getScriptState(), requestToRequestInfo(request), response->clone(exceptionState()), exceptionState()); |
+ ScriptPromise putResult = cache->put(getScriptState(), requestToRequestInfo(request), response->clone(getScriptState(), exceptionState()), exceptionState()); |
EXPECT_EQ("dispatchBatch", testCache->getAndClearLastErrorWebCacheMethodCalled()); |
EXPECT_EQ(kNotImplementedString, getRejectString(putResult)); |
@@ -625,7 +625,7 @@ TEST_F(CacheStorageTest, Add) |
fetcher->setExpectedFetchUrl(&url); |
Request* request = newRequestFromUrl(url); |
- Response* response = Response::create(getExecutionContext(), FetchFormDataConsumerHandle::create(content), contentType, ResponseInit(), exceptionState()); |
+ Response* response = Response::create(getScriptState(), FetchFormDataConsumerHandle::create(content), contentType, ResponseInit(), exceptionState()); |
fetcher->setResponse(response); |
WebVector<WebServiceWorkerCache::BatchOperation> expectedPutOperations(size_t(1)); |