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

Unified Diff: components/devtools_service/devtools_registry_impl.cc

Issue 1552763002: Global conversion of Pass()→std::move(): Linux GN static library edition (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Manual remove one more pessimizing move 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: 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); });
« no previous file with comments | « components/devtools_service/devtools_http_server.cc ('k') | components/devtools_service/devtools_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698