| Index: components/devtools_service/devtools_registry_impl.cc
|
| diff --git a/components/devtools_service/devtools_registry_impl.cc b/components/devtools_service/devtools_registry_impl.cc
|
| index 5e402e890ae30242440076c2e26a505348186375..6dfe24257940786161d2c8dcfab14a13b87fca7e 100644
|
| --- a/components/devtools_service/devtools_registry_impl.cc
|
| +++ b/components/devtools_service/devtools_registry_impl.cc
|
| @@ -4,6 +4,8 @@
|
|
|
| #include "components/devtools_service/devtools_registry_impl.h"
|
|
|
| +#include <utility>
|
| +
|
| #include "base/logging.h"
|
| #include "components/devtools_service/devtools_agent_host.h"
|
|
|
| @@ -25,7 +27,7 @@ DevToolsRegistryImpl::~DevToolsRegistryImpl() {
|
|
|
| void DevToolsRegistryImpl::BindToRegistryRequest(
|
| mojo::InterfaceRequest<DevToolsRegistry> request) {
|
| - bindings_.AddBinding(this, request.Pass());
|
| + bindings_.AddBinding(this, std::move(request));
|
| }
|
|
|
| DevToolsAgentHost* DevToolsRegistryImpl::GetAgentById(const std::string& id) {
|
| @@ -39,7 +41,7 @@ DevToolsAgentHost* DevToolsRegistryImpl::GetAgentById(const std::string& id) {
|
| void DevToolsRegistryImpl::RegisterAgent(const mojo::String& id,
|
| DevToolsAgentPtr agent) {
|
| linked_ptr<DevToolsAgentHost> agent_host(
|
| - new DevToolsAgentHost(id, agent.Pass()));
|
| + new DevToolsAgentHost(id, std::move(agent)));
|
| agent_host->set_agent_connection_error_handler(
|
| [this, id]() { OnAgentConnectionError(id); });
|
|
|
|
|