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

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

Issue 2183783002: Revert of Stop passing const-reference of SWRegistration in all GetRegistrationsCallbacks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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_browsertest.cc
diff --git a/content/browser/service_worker/service_worker_browsertest.cc b/content/browser/service_worker/service_worker_browsertest.cc
index e10b3e27eec3c682997159d6ce47d1a6718a0f4f..0be509943dca192581a7849c33fbb8c24d698902 100644
--- a/content/browser/service_worker/service_worker_browsertest.cc
+++ b/content/browser/service_worker/service_worker_browsertest.cc
@@ -134,7 +134,7 @@
const base::Closure& quit,
ServiceWorkerStatusCode* out_status,
ServiceWorkerStatusCode status,
- scoped_refptr<ServiceWorkerRegistration> registration) {
+ const scoped_refptr<ServiceWorkerRegistration>& registration) {
*out_status = status;
if (!quit.is_null())
BrowserThread::PostTask(run_quit_thread, FROM_HERE, quit);
@@ -1426,7 +1426,7 @@
ServiceWorkerStatusCode* out_status,
const base::Closure& continuation,
ServiceWorkerStatusCode status,
- scoped_refptr<ServiceWorkerRegistration> registration) {
+ const scoped_refptr<ServiceWorkerRegistration>& registration) {
*out_status = status;
if (!registration.get())
EXPECT_NE(SERVICE_WORKER_OK, status);

Powered by Google App Engine
This is Rietveld 408576698