Chromium Code Reviews (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out

Unified Diff: content/browser/service_worker/

Issue 2181553003: Stop passing const-reference of SWRegistration in all GetRegistrationsCallbacks. (Closed) Base URL:
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/
diff --git a/content/browser/service_worker/ b/content/browser/service_worker/
index d06955f01f65b1356778951a6f0e894523b29eed..14729cbc103eba71f56d6e75e3866988f4e69a80 100644
--- a/content/browser/service_worker/
+++ b/content/browser/service_worker/
@@ -58,10 +58,10 @@ void SaveFoundRegistrationCallback(
bool* called,
scoped_refptr<ServiceWorkerRegistration>* registration,
ServiceWorkerStatusCode status,
- const scoped_refptr<ServiceWorkerRegistration>& result) {
+ scoped_refptr<ServiceWorkerRegistration> result) {
EXPECT_EQ(expected_status, status);
*called = true;
- *registration = result;
+ *registration = std::move(result);
// Creates a callback which both keeps track of if it's been called,

Powered by Google App Engine
This is Rietveld 408576698