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

Unified Diff: remoting/host/fake_desktop_environment.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: include <utility> 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/host/desktop_shape_tracker_win.cc ('k') | remoting/host/fake_host_extension.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/fake_desktop_environment.cc
diff --git a/remoting/host/fake_desktop_environment.cc b/remoting/host/fake_desktop_environment.cc
index ed30c06b6028a6505cd54741b6a2029dee6dd1df..1d94b19f6c5ea08c01906e939d1b0e8413cbf9af 100644
--- a/remoting/host/fake_desktop_environment.cc
+++ b/remoting/host/fake_desktop_environment.cc
@@ -4,6 +4,8 @@
#include "remoting/host/fake_desktop_environment.h"
+#include <utility>
+
#include "remoting/host/audio_capturer.h"
#include "remoting/host/gnubby_auth_handler.h"
#include "remoting/host/input_injector.h"
@@ -64,7 +66,7 @@ scoped_ptr<AudioCapturer> FakeDesktopEnvironment::CreateAudioCapturer() {
scoped_ptr<InputInjector> FakeDesktopEnvironment::CreateInputInjector() {
scoped_ptr<FakeInputInjector> result(new FakeInputInjector());
last_input_injector_ = result->AsWeakPtr();
- return result.Pass();
+ return std::move(result);
}
scoped_ptr<ScreenControls> FakeDesktopEnvironment::CreateScreenControls() {
@@ -77,7 +79,7 @@ FakeDesktopEnvironment::CreateVideoCapturer() {
new protocol::FakeDesktopCapturer());
if (!frame_generator_.is_null())
result->set_frame_generator(frame_generator_);
- return result.Pass();
+ return std::move(result);
}
scoped_ptr<webrtc::MouseCursorMonitor>
@@ -105,7 +107,7 @@ scoped_ptr<DesktopEnvironment> FakeDesktopEnvironmentFactory::Create(
scoped_ptr<FakeDesktopEnvironment> result(new FakeDesktopEnvironment());
result->set_frame_generator(frame_generator_);
last_desktop_environment_ = result->AsWeakPtr();
- return result.Pass();
+ return std::move(result);
}
void FakeDesktopEnvironmentFactory::SetEnableCurtaining(bool enable) {}
« no previous file with comments | « remoting/host/desktop_shape_tracker_win.cc ('k') | remoting/host/fake_host_extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698