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

Unified Diff: remoting/signaling/log_to_server.cc

Issue 1545723002: Use std::move() instead of .Pass() in remoting/* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_not_pass_host
Patch Set: 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/signaling/jingle_info_request.cc ('k') | remoting/signaling/server_log_entry.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/signaling/log_to_server.cc
diff --git a/remoting/signaling/log_to_server.cc b/remoting/signaling/log_to_server.cc
index 731dc5862bfd922d782e015bc14da67fd1ab2a41..2da454f0f29daa0511be8e0ceb1d236238650164 100644
--- a/remoting/signaling/log_to_server.cc
+++ b/remoting/signaling/log_to_server.cc
@@ -4,6 +4,8 @@
#include "remoting/signaling/log_to_server.h"
+#include <utility>
+
#include "remoting/base/constants.h"
#include "remoting/signaling/iq_sender.h"
#include "remoting/signaling/signal_strategy.h"
@@ -63,12 +65,9 @@ void LogToServer::SendPendingEntries() {
stanza->AddElement(entry.ToStanza().release());
pending_entries_.pop_front();
}
- // Send the stanza to the server.
- scoped_ptr<IqRequest> req = iq_sender_->SendIq(
- buzz::STR_SET, directory_bot_jid_, stanza.Pass(),
- IqSender::ReplyCallback());
- // We ignore any response, so let the IqRequest be destroyed.
- return;
+ // Send the stanza to the server and ignore the response.
+ iq_sender_->SendIq(buzz::STR_SET, directory_bot_jid_, std::move(stanza),
+ IqSender::ReplyCallback());
}
} // namespace remoting
« no previous file with comments | « remoting/signaling/jingle_info_request.cc ('k') | remoting/signaling/server_log_entry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698