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

Unified Diff: content/browser/service_worker/service_worker_storage.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_storage.h
diff --git a/content/browser/service_worker/service_worker_storage.h b/content/browser/service_worker/service_worker_storage.h
index 61ce44dc35e39237b5673e84fed05cf11630caa7..1667b54a795eb915cb0a13f50bb4834082bda83c 100644
--- a/content/browser/service_worker/service_worker_storage.h
+++ b/content/browser/service_worker/service_worker_storage.h
@@ -57,9 +57,10 @@ class CONTENT_EXPORT ServiceWorkerStorage
public:
typedef std::vector<ServiceWorkerDatabase::ResourceRecord> ResourceList;
typedef base::Callback<void(ServiceWorkerStatusCode status)> StatusCallback;
- typedef base::Callback<void(ServiceWorkerStatusCode status,
- const scoped_refptr<ServiceWorkerRegistration>&
- registration)> FindRegistrationCallback;
+ typedef base::Callback<void(
+ ServiceWorkerStatusCode status,
+ scoped_refptr<ServiceWorkerRegistration> registration)>
+ FindRegistrationCallback;
typedef base::Callback<void(
ServiceWorkerStatusCode status,
const std::vector<scoped_refptr<ServiceWorkerRegistration>>&

Powered by Google App Engine
This is Rietveld 408576698