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 0c32d7168594bb9f4070c13c35cdde1da532f790..7acaa5a75b1406635c2478989b5f2e18b08e0fe6 100644 |
--- a/content/browser/service_worker/service_worker_context_wrapper.cc |
+++ b/content/browser/service_worker/service_worker_context_wrapper.cc |
@@ -55,7 +55,7 @@ void WorkerStarted(const ServiceWorkerContextWrapper::StatusCallback& callback, |
void StartActiveWorkerOnIO( |
const ServiceWorkerContextWrapper::StatusCallback& callback, |
ServiceWorkerStatusCode status, |
- const scoped_refptr<ServiceWorkerRegistration>& registration) { |
+ scoped_refptr<ServiceWorkerRegistration> registration) { |
DCHECK_CURRENTLY_ON(BrowserThread::IO); |
if (status == SERVICE_WORKER_OK) { |
// Pass the reference of |registration| to WorkerStarted callback to prevent |
@@ -72,7 +72,7 @@ void StartActiveWorkerOnIO( |
void SkipWaitingWorkerOnIO( |
ServiceWorkerStatusCode status, |
- const scoped_refptr<ServiceWorkerRegistration>& registration) { |
+ scoped_refptr<ServiceWorkerRegistration> registration) { |
DCHECK_CURRENTLY_ON(BrowserThread::IO); |
if (status != SERVICE_WORKER_OK || !registration->waiting_version()) |
return; |
@@ -400,7 +400,7 @@ void ServiceWorkerContextWrapper::StopAllServiceWorkersForOrigin( |
void ServiceWorkerContextWrapper::DidFindRegistrationForUpdate( |
ServiceWorkerStatusCode status, |
- const scoped_refptr<ServiceWorkerRegistration>& registration) { |
+ scoped_refptr<ServiceWorkerRegistration> registration) { |
DCHECK_CURRENTLY_ON(BrowserThread::IO); |
if (status != SERVICE_WORKER_OK) |
@@ -564,7 +564,7 @@ void ServiceWorkerContextWrapper::FindReadyRegistrationForId( |
void ServiceWorkerContextWrapper::DidFindRegistrationForFindReady( |
const FindRegistrationCallback& callback, |
ServiceWorkerStatusCode status, |
- const scoped_refptr<ServiceWorkerRegistration>& registration) { |
+ scoped_refptr<ServiceWorkerRegistration> registration) { |
DCHECK_CURRENTLY_ON(BrowserThread::IO); |
if (status != SERVICE_WORKER_OK) { |
callback.Run(status, nullptr); |
@@ -592,7 +592,7 @@ void ServiceWorkerContextWrapper::DidFindRegistrationForFindReady( |
} |
DCHECK_EQ(ServiceWorkerVersion::ACTIVATED, active_version->status()); |
- callback.Run(SERVICE_WORKER_OK, registration); |
+ callback.Run(SERVICE_WORKER_OK, std::move(registration)); |
} |
void ServiceWorkerContextWrapper::OnStatusChangedForFindReadyRegistration( |