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

Unified Diff: remoting/host/heartbeat_sender.cc

Issue 1549493004: Use std::move() instead of .Pass() in remoting/host (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_not_pass
Patch Set: include <utility> 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 | « remoting/host/gnubby_socket.cc ('k') | remoting/host/host_change_notification_listener_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/heartbeat_sender.cc
diff --git a/remoting/host/heartbeat_sender.cc b/remoting/host/heartbeat_sender.cc
index 5b75c4a698222b960ca5e3dcb36c64111ace7944..079a3934751087130f62e76167160fc165e05d67 100644
--- a/remoting/host/heartbeat_sender.cc
+++ b/remoting/host/heartbeat_sender.cc
@@ -342,7 +342,7 @@ scoped_ptr<XmlElement> HeartbeatSender::CreateHeartbeatMessage() {
AddHostFieldsToLogEntry(log_entry.get());
log->AddElement(log_entry->ToStanza().release());
heartbeat->AddElement(log.release());
- return heartbeat.Pass();
+ return heartbeat;
}
scoped_ptr<XmlElement> HeartbeatSender::CreateSignature() {
@@ -354,7 +354,7 @@ scoped_ptr<XmlElement> HeartbeatSender::CreateSignature() {
std::string signature(host_key_pair_->SignMessage(message));
signature_tag->AddText(signature);
- return signature_tag.Pass();
+ return signature_tag;
}
} // namespace remoting
« no previous file with comments | « remoting/host/gnubby_socket.cc ('k') | remoting/host/host_change_notification_listener_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698