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

Unified Diff: components/devtools_service/devtools_agent_host.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
« no previous file with comments | « no previous file | components/devtools_service/devtools_http_server.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/devtools_service/devtools_agent_host.cc
diff --git a/components/devtools_service/devtools_agent_host.cc b/components/devtools_service/devtools_agent_host.cc
index 30b2287216c30d9fdce7e1f02efb2e90b5a59145..3f0cae25a7bb82af268fa20766695686dce78056 100644
--- a/components/devtools_service/devtools_agent_host.cc
+++ b/components/devtools_service/devtools_agent_host.cc
@@ -4,11 +4,13 @@
#include "components/devtools_service/devtools_agent_host.h"
+#include <utility>
+
namespace devtools_service {
DevToolsAgentHost::DevToolsAgentHost(const std::string& id,
DevToolsAgentPtr agent)
- : id_(id), agent_(agent.Pass()), binding_(this), delegate_(nullptr) {}
+ : id_(id), agent_(std::move(agent)), binding_(this), delegate_(nullptr) {}
DevToolsAgentHost::~DevToolsAgentHost() {
if (delegate_)
@@ -23,7 +25,7 @@ void DevToolsAgentHost::SetDelegate(Delegate* delegate) {
DevToolsAgentClientPtr client;
binding_.Bind(&client);
- agent_->SetClient(client.Pass());
+ agent_->SetClient(std::move(client));
} else {
if (!binding_.is_bound())
return;
« no previous file with comments | « no previous file | components/devtools_service/devtools_http_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698