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

Unified Diff: remoting/protocol/session_config.cc

Issue 1534193004: Use std::move() instead of scoped_ptr<>::Pass(). (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
Index: remoting/protocol/session_config.cc
diff --git a/remoting/protocol/session_config.cc b/remoting/protocol/session_config.cc
index ebdfab29d3ced8a6e675ed1a5f573a079a879a4e..86779a387f8a7b1e363df8717e392abb456d8231 100644
--- a/remoting/protocol/session_config.cc
+++ b/remoting/protocol/session_config.cc
@@ -161,7 +161,7 @@ scoped_ptr<SessionConfig> SessionConfig::ForTest() {
result->audio_config_ = ChannelConfig(ChannelConfig::TRANSPORT_NONE,
kDefaultStreamVersion,
ChannelConfig::CODEC_UNDEFINED);
- return result.Pass();
+ return result;
}
scoped_ptr<SessionConfig> SessionConfig::ForTestWithVerbatimVideo() {
@@ -169,7 +169,7 @@ scoped_ptr<SessionConfig> SessionConfig::ForTestWithVerbatimVideo() {
result->video_config_ = ChannelConfig(ChannelConfig::TRANSPORT_STREAM,
kDefaultStreamVersion,
ChannelConfig::CODEC_VERBATIM);
- return result.Pass();
+ return result;
}
scoped_ptr<SessionConfig> SessionConfig::ForTestWithWebrtc() {
@@ -248,7 +248,7 @@ scoped_ptr<CandidateSessionConfig> CandidateSessionConfig::CreateFrom(
break;
}
- return result.Pass();
+ return result;
}
// static
@@ -286,7 +286,7 @@ scoped_ptr<CandidateSessionConfig> CandidateSessionConfig::CreateDefault() {
ChannelConfig::CODEC_OPUS));
result->mutable_audio_configs()->push_back(ChannelConfig::None());
- return result.Pass();
+ return result;
}
void CandidateSessionConfig::DisableAudioChannel() {

Powered by Google App Engine
This is Rietveld 408576698