Index: content/browser/service_worker/service_worker_storage_unittest.cc |
diff --git a/content/browser/service_worker/service_worker_storage_unittest.cc b/content/browser/service_worker/service_worker_storage_unittest.cc |
index fe64a675479789585d4017485cbfa72a083b3fed..478ace71d8340575aad4b28ee9ceb9ec3acd31c3 100644 |
--- a/content/browser/service_worker/service_worker_storage_unittest.cc |
+++ b/content/browser/service_worker/service_worker_storage_unittest.cc |
@@ -62,14 +62,15 @@ |
return base::Bind(&StatusCallback, was_called, result); |
} |
-void FindCallback(bool* was_called, |
- ServiceWorkerStatusCode* result, |
- scoped_refptr<ServiceWorkerRegistration>* found, |
- ServiceWorkerStatusCode status, |
- scoped_refptr<ServiceWorkerRegistration> registration) { |
+void FindCallback( |
+ bool* was_called, |
+ ServiceWorkerStatusCode* result, |
+ scoped_refptr<ServiceWorkerRegistration>* found, |
+ ServiceWorkerStatusCode status, |
+ const scoped_refptr<ServiceWorkerRegistration>& registration) { |
*was_called = true; |
*result = status; |
- *found = std::move(registration); |
+ *found = registration; |
} |
ServiceWorkerStorage::FindRegistrationCallback MakeFindCallback( |
@@ -433,7 +434,7 @@ |
} |
ServiceWorkerStatusCode UpdateToActiveState( |
- scoped_refptr<ServiceWorkerRegistration> registration) { |
+ const scoped_refptr<ServiceWorkerRegistration>& registration) { |
bool was_called = false; |
ServiceWorkerStatusCode result = SERVICE_WORKER_ERROR_MAX_VALUE; |
storage()->UpdateToActiveState(registration.get(), |
@@ -445,7 +446,7 @@ |
} |
void UpdateLastUpdateCheckTime( |
- scoped_refptr<ServiceWorkerRegistration> registration) { |
+ const scoped_refptr<ServiceWorkerRegistration>& registration) { |
storage()->UpdateLastUpdateCheckTime(registration.get()); |
base::RunLoop().RunUntilIdle(); |
} |