| Index: content/browser/service_worker/service_worker_register_job.cc
|
| diff --git a/content/browser/service_worker/service_worker_register_job.cc b/content/browser/service_worker/service_worker_register_job.cc
|
| index d5765009e7a0b0bde7cb6a2581f30fac65ae655d..5755d622bf053600a17286407b7aa5bd296069b2 100644
|
| --- a/content/browser/service_worker/service_worker_register_job.cc
|
| +++ b/content/browser/service_worker/service_worker_register_job.cc
|
| @@ -59,7 +59,7 @@ class InstallEventMethodsReceiver
|
| DISALLOW_COPY_AND_ASSIGN(InstallEventMethodsReceiver);
|
| };
|
|
|
| -void RunSoon(const base::Closure& closure) {
|
| +void RunSoonFunctionCopy18(const base::Closure& closure) {
|
| base::ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE, closure);
|
| }
|
|
|
| @@ -116,7 +116,7 @@ void ServiceWorkerRegisterJob::AddCallback(
|
| provider_host->AddScopedProcessReferenceToPattern(pattern_);
|
| return;
|
| }
|
| - RunSoon(base::Bind(callback, promise_resolved_status_,
|
| + RunSoonFunctionCopy18(base::Bind(callback, promise_resolved_status_,
|
| promise_resolved_status_message_,
|
| base::RetainedRef(promise_resolved_registration_)));
|
| }
|
| @@ -145,7 +145,7 @@ void ServiceWorkerRegisterJob::StartImpl() {
|
| scoped_refptr<ServiceWorkerRegistration> registration =
|
| context_->storage()->GetUninstallingRegistration(pattern_);
|
| if (registration.get())
|
| - RunSoon(base::Bind(next_step, SERVICE_WORKER_OK, registration));
|
| + RunSoonFunctionCopy18(base::Bind(next_step, SERVICE_WORKER_OK, registration));
|
| else
|
| context_->storage()->FindRegistrationForPattern(pattern_, next_step);
|
| }
|
|
|