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

Unified Diff: content/browser/service_worker/service_worker_context_wrapper.h

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_context_wrapper.h
diff --git a/content/browser/service_worker/service_worker_context_wrapper.h b/content/browser/service_worker/service_worker_context_wrapper.h
index 0285802834194f66fd3c299e56f1e4819e4305c9..ab4c900ba7610a18ca9499ee4816e1c9c797cabf 100644
--- a/content/browser/service_worker/service_worker_context_wrapper.h
+++ b/content/browser/service_worker/service_worker_context_wrapper.h
@@ -212,10 +212,10 @@ class CONTENT_EXPORT ServiceWorkerContextWrapper
void DidFindRegistrationForFindReady(
const FindRegistrationCallback& callback,
ServiceWorkerStatusCode status,
- const scoped_refptr<ServiceWorkerRegistration>& registration);
+ scoped_refptr<ServiceWorkerRegistration> registration);
void OnStatusChangedForFindReadyRegistration(
const FindRegistrationCallback& callback,
- const scoped_refptr<ServiceWorkerRegistration>& registration);
+ scoped_refptr<ServiceWorkerRegistration> registration);
void DidDeleteAndStartOver(ServiceWorkerStatusCode status);
@@ -229,7 +229,7 @@ class CONTENT_EXPORT ServiceWorkerContextWrapper
void DidFindRegistrationForUpdate(
ServiceWorkerStatusCode status,
- const scoped_refptr<content::ServiceWorkerRegistration>& registration);
+ scoped_refptr<content::ServiceWorkerRegistration> registration);
// The core context is only for use on the IO thread.
// Can be null before/during init, during/after shutdown, and after

Powered by Google App Engine
This is Rietveld 408576698