Index: content/browser/service_worker/service_worker_context_wrapper.cc |
diff --git a/content/browser/service_worker/service_worker_context_wrapper.cc b/content/browser/service_worker/service_worker_context_wrapper.cc |
index 5ab3510e722dac59b56ae972e4e8772ed071945a..4e730c6d1e63813f2c89d58c2f7e668ca74ce990 100644 |
--- a/content/browser/service_worker/service_worker_context_wrapper.cc |
+++ b/content/browser/service_worker/service_worker_context_wrapper.cc |
@@ -260,16 +260,13 @@ static void FinishRegistrationOnIO( |
void ServiceWorkerContextWrapper::RegisterServiceWorker( |
const GURL& pattern, |
const GURL& script_url, |
+ blink::WebServiceWorkerUpdateViaCache update_via_cache, |
const ResultCallback& continuation) { |
if (!BrowserThread::CurrentlyOn(BrowserThread::IO)) { |
BrowserThread::PostTask( |
- BrowserThread::IO, |
- FROM_HERE, |
- base::Bind(&ServiceWorkerContextWrapper::RegisterServiceWorker, |
- this, |
- pattern, |
- script_url, |
- continuation)); |
+ BrowserThread::IO, FROM_HERE, |
+ base::Bind(&ServiceWorkerContextWrapper::RegisterServiceWorker, this, |
+ pattern, script_url, update_via_cache, continuation)); |
return; |
} |
if (!context_core_) { |
@@ -277,7 +274,8 @@ void ServiceWorkerContextWrapper::RegisterServiceWorker( |
base::Bind(continuation, false)); |
return; |
} |
- ServiceWorkerRegistrationOptions options(net::SimplifyUrlForRequest(pattern)); |
+ ServiceWorkerRegistrationOptions options(net::SimplifyUrlForRequest(pattern), |
+ update_via_cache); |
context()->RegisterServiceWorker( |
net::SimplifyUrlForRequest(script_url), options, |
nullptr /* provider_host */, |