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) { |