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

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

Issue 1545243002: Convert Pass()→std::move() in //content/browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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_dispatcher_host.cc
diff --git a/content/browser/service_worker/service_worker_dispatcher_host.cc b/content/browser/service_worker/service_worker_dispatcher_host.cc
index 1e264d829a1f1dd07ddf8d7ccb62b8879a8aad1b..f8d80e08730739513d5233cb62ab34cef2f0a555 100644
--- a/content/browser/service_worker/service_worker_dispatcher_host.cc
+++ b/content/browser/service_worker/service_worker_dispatcher_host.cc
@@ -4,6 +4,8 @@
#include "content/browser/service_worker/service_worker_dispatcher_host.h"
+#include <utility>
+
#include "base/logging.h"
#include "base/macros.h"
#include "base/profiler/scoped_tracker.h"
@@ -278,7 +280,7 @@ ServiceWorkerDispatcherHost::GetOrCreateRegistrationHandle(
new ServiceWorkerRegistrationHandle(GetContext()->AsWeakPtr(),
provider_host, registration));
ServiceWorkerRegistrationHandle* new_handle_ptr = new_handle.get();
- RegisterServiceWorkerRegistrationHandle(new_handle.Pass());
+ RegisterServiceWorkerRegistrationHandle(std::move(new_handle));
return new_handle_ptr;
}
@@ -765,7 +767,7 @@ void ServiceWorkerDispatcherHost::OnProviderCreated(
render_process_id_, route_id, provider_id, provider_type,
GetContext()->AsWeakPtr(), this));
}
- GetContext()->AddProviderHost(provider_host.Pass());
+ GetContext()->AddProviderHost(std::move(provider_host));
}
void ServiceWorkerDispatcherHost::OnProviderDestroyed(int provider_id) {

Powered by Google App Engine
This is Rietveld 408576698