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

Unified Diff: remoting/host/fake_host_extension.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: 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/host/fake_host_extension.cc
diff --git a/remoting/host/fake_host_extension.cc b/remoting/host/fake_host_extension.cc
index 34c31f928d83759c29e534101a91c104d8a96d0d..8e02d2fa5dcf9cea868e3921b42015257464c224 100644
--- a/remoting/host/fake_host_extension.cc
+++ b/remoting/host/fake_host_extension.cc
@@ -92,8 +92,7 @@ scoped_ptr<HostExtensionSession> FakeExtension::CreateExtensionSession(
protocol::ClientStub* client_stub) {
DCHECK(!was_instantiated());
was_instantiated_ = true;
- scoped_ptr<HostExtensionSession> session(new Session(this, message_type_));
- return session.Pass();
+ return make_scoped_ptr(new Session(this, message_type_));
}
} // namespace remoting

Powered by Google App Engine
This is Rietveld 408576698