| 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 033232bb40c676d6785a8f4dc5e079f0365b1482..6652fcfebc024ed8cdeadf14c6b2b13f2c8dd6ad 100644
|
| --- a/content/browser/service_worker/service_worker_register_job.cc
|
| +++ b/content/browser/service_worker/service_worker_register_job.cc
|
| @@ -58,7 +58,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);
|
| }
|
|
|
| @@ -117,7 +117,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);
|
| }
|
|
|