Index: third_party/WebKit/Source/modules/cachestorage/Cache.cpp |
diff --git a/third_party/WebKit/Source/modules/cachestorage/Cache.cpp b/third_party/WebKit/Source/modules/cachestorage/Cache.cpp |
index 6cf2390c4d37cfbd0cb2c05ab616b04d7068630d..1fedc99c5f493be2d2272dbedf21654d47372e18 100644 |
--- a/third_party/WebKit/Source/modules/cachestorage/Cache.cpp |
+++ b/third_party/WebKit/Source/modules/cachestorage/Cache.cpp |
@@ -584,9 +584,10 @@ ScriptPromise Cache::addAllImpl(ScriptState* scriptState, |
"other than \"http\" or \"https\"")); |
if (requests[i]->method() != HTTPNames::GET) |
return ScriptPromise::reject( |
- scriptState, V8ThrowException::createTypeError( |
- scriptState->isolate(), |
- "Add/AddAll only supports the GET request method.")); |
+ scriptState, |
+ V8ThrowException::createTypeError( |
+ scriptState->isolate(), |
+ "Add/AddAll only supports the GET request method.")); |
requestInfos[i].setRequest(requests[i]); |
promises[i] = m_scopedFetcher->fetch(scriptState, requestInfos[i], |
@@ -658,9 +659,9 @@ ScriptPromise Cache::putImpl(ScriptState* scriptState, |
// the blob handle and dispatch the put batch asynchronously. |
FetchDataLoader* loader = FetchDataLoader::createLoaderAsBlobHandle( |
responses[i]->internalMIMEType()); |
- buffer->startLoading( |
- loader, new BlobHandleCallbackForPut(i, barrierCallback, requests[i], |
- responses[i])); |
+ buffer->startLoading(loader, |
+ new BlobHandleCallbackForPut( |
+ i, barrierCallback, requests[i], responses[i])); |
continue; |
} |