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

Unified Diff: google_apis/gcm/base/mcs_util.cc

Issue 1547233002: Convert Pass()→std::move() in //google_apis (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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 | « google_apis/gcm/base/mcs_message_unittest.cc ('k') | google_apis/gcm/engine/connection_factory_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: google_apis/gcm/base/mcs_util.cc
diff --git a/google_apis/gcm/base/mcs_util.cc b/google_apis/gcm/base/mcs_util.cc
index b35b23c6ef9aef1fea3b66ca96b41eeb57db8b18..e79355cba3ac8bb0414841d6dab081a73fe0d06e 100644
--- a/google_apis/gcm/base/mcs_util.cc
+++ b/google_apis/gcm/base/mcs_util.cc
@@ -81,7 +81,7 @@ scoped_ptr<mcs_proto::LoginRequest> BuildLoginRequest(
login_request->add_setting();
login_request->mutable_setting(0)->set_name(kLoginSettingDefaultName);
login_request->mutable_setting(0)->set_value(kLoginSettingDefaultValue);
- return login_request.Pass();
+ return login_request;
}
scoped_ptr<mcs_proto::IqStanza> BuildStreamAck() {
@@ -90,7 +90,7 @@ scoped_ptr<mcs_proto::IqStanza> BuildStreamAck() {
stream_ack_iq->set_id("");
stream_ack_iq->mutable_extension()->set_id(kStreamAck);
stream_ack_iq->mutable_extension()->set_data("");
- return stream_ack_iq.Pass();
+ return stream_ack_iq;
}
scoped_ptr<mcs_proto::IqStanza> BuildSelectiveAck(
@@ -104,7 +104,7 @@ scoped_ptr<mcs_proto::IqStanza> BuildSelectiveAck(
selective_ack.add_id(acked_ids[i]);
selective_ack_iq->mutable_extension()->set_data(
selective_ack.SerializeAsString());
- return selective_ack_iq.Pass();
+ return selective_ack_iq;
}
// Utility method to build a google::protobuf::MessageLite object from a MCS
« no previous file with comments | « google_apis/gcm/base/mcs_message_unittest.cc ('k') | google_apis/gcm/engine/connection_factory_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698