Index: content/browser/service_worker/service_worker_version.cc |
diff --git a/content/browser/service_worker/service_worker_version.cc b/content/browser/service_worker/service_worker_version.cc |
index c9f14e5bbe052ee152eb13e47d1bef2323680fe7..ed7ae82ea0a1579398af3bf3e96a88cdf88807ee 100644 |
--- a/content/browser/service_worker/service_worker_version.cc |
+++ b/content/browser/service_worker/service_worker_version.cc |
@@ -1284,7 +1284,7 @@ |
bool is_browser_startup_complete, |
const StatusCallback& callback, |
ServiceWorkerStatusCode status, |
- scoped_refptr<ServiceWorkerRegistration> registration) { |
+ const scoped_refptr<ServiceWorkerRegistration>& registration) { |
scoped_refptr<ServiceWorkerRegistration> protect = registration; |
if (status == SERVICE_WORKER_ERROR_NOT_FOUND) { |
// When the registration has already been deleted from the storage but its |
@@ -1654,7 +1654,7 @@ |
void ServiceWorkerVersion::FoundRegistrationForUpdate( |
ServiceWorkerStatusCode status, |
- scoped_refptr<ServiceWorkerRegistration> registration) { |
+ const scoped_refptr<ServiceWorkerRegistration>& registration) { |
if (!context_) |
return; |