| Index: third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerContainer.cpp
|
| diff --git a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerContainer.cpp b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerContainer.cpp
|
| index e8449e87716a5314e28d9c30e18ba9642260bc96..8771be830f70f2b94f37aa7e2f854562339e5405 100644
|
| --- a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerContainer.cpp
|
| +++ b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerContainer.cpp
|
| @@ -155,6 +155,7 @@ void ServiceWorkerContainer::registerServiceWorkerImpl(
|
| ExecutionContext* executionContext,
|
| const KURL& rawScriptURL,
|
| const KURL& scope,
|
| + bool useCache,
|
| std::unique_ptr<RegistrationCallbacks> callbacks) {
|
| if (!m_provider) {
|
| callbacks->onError(
|
| @@ -259,7 +260,7 @@ void ServiceWorkerContainer::registerServiceWorkerImpl(
|
| }
|
| }
|
|
|
| - m_provider->registerServiceWorker(patternURL, scriptURL,
|
| + m_provider->registerServiceWorker(patternURL, scriptURL, useCache,
|
| std::move(callbacks));
|
| }
|
|
|
| @@ -292,8 +293,10 @@ ScriptPromise ServiceWorkerContainer::registerServiceWorker(
|
| else
|
| patternURL = executionContext->completeURL(options.scope());
|
|
|
| + bool useCache = options.useCache();
|
| +
|
| registerServiceWorkerImpl(
|
| - executionContext, scriptURL, patternURL,
|
| + executionContext, scriptURL, patternURL, useCache,
|
| WTF::makeUnique<CallbackPromiseAdapter<ServiceWorkerRegistration,
|
| ServiceWorkerErrorForUpdate>>(
|
| resolver));
|
|
|