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

Unified Diff: remoting/signaling/jingle_info_request.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/iq_sender_unittest.cc ('k') | remoting/signaling/log_to_server.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/signaling/jingle_info_request.cc
diff --git a/remoting/signaling/jingle_info_request.cc b/remoting/signaling/jingle_info_request.cc
index be0f75f5e52fc6f1866b31bdac55e12af5832e96..0ea7517d72f7b3a0e1df8fa8da03630b001fbaa0 100644
--- a/remoting/signaling/jingle_info_request.cc
+++ b/remoting/signaling/jingle_info_request.cc
@@ -4,6 +4,8 @@
#include "remoting/signaling/jingle_info_request.h"
+#include <utility>
+
#include "base/bind.h"
#include "base/message_loop/message_loop.h"
#include "base/stl_util.h"
@@ -20,8 +22,7 @@ namespace remoting {
const int kRequestTimeoutSeconds = 5;
JingleInfoRequest::JingleInfoRequest(SignalStrategy* signal_strategy)
- : iq_sender_(signal_strategy) {
-}
+ : iq_sender_(signal_strategy) {}
JingleInfoRequest::~JingleInfoRequest() {}
@@ -30,7 +31,7 @@ void JingleInfoRequest::Send(const OnJingleInfoCallback& callback) {
scoped_ptr<buzz::XmlElement> iq_body(
new buzz::XmlElement(buzz::QN_JINGLE_INFO_QUERY, true));
request_ = iq_sender_.SendIq(
- buzz::STR_GET, buzz::STR_EMPTY, iq_body.Pass(),
+ buzz::STR_GET, buzz::STR_EMPTY, std::move(iq_body),
base::Bind(&JingleInfoRequest::OnResponse, base::Unretained(this)));
if (!request_) {
// If we failed to send IqRequest it means that SignalStrategy is
« no previous file with comments | « remoting/signaling/iq_sender_unittest.cc ('k') | remoting/signaling/log_to_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698