Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(497)

Unified Diff: content/browser/service_worker/service_worker_unregister_job.cc

Issue 2181553003: Stop passing const-reference of SWRegistration in all GetRegistrationsCallbacks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix ServiceWorkerContextCore::DidFindRegistrationForCheckHasServiceWorker() Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/service_worker/service_worker_unregister_job.cc
diff --git a/content/browser/service_worker/service_worker_unregister_job.cc b/content/browser/service_worker/service_worker_unregister_job.cc
index c0fc9dc4cb6d528a8ebc37f045a7236fbda54183..0ca2f7f0781c15d061ac31d9ceeff55cb0fa6049 100644
--- a/content/browser/service_worker/service_worker_unregister_job.cc
+++ b/content/browser/service_worker/service_worker_unregister_job.cc
@@ -57,7 +57,7 @@ RegistrationJobType ServiceWorkerUnregisterJob::GetType() const {
void ServiceWorkerUnregisterJob::OnRegistrationFound(
ServiceWorkerStatusCode status,
- const scoped_refptr<ServiceWorkerRegistration>& registration) {
+ scoped_refptr<ServiceWorkerRegistration> registration) {
if (status == SERVICE_WORKER_ERROR_NOT_FOUND) {
DCHECK(!registration.get());
Complete(kInvalidServiceWorkerRegistrationId,

Powered by Google App Engine
This is Rietveld 408576698