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

Unified Diff: remoting/host/desktop_capturer_proxy.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/desktop_capturer_proxy.cc
diff --git a/remoting/host/desktop_capturer_proxy.cc b/remoting/host/desktop_capturer_proxy.cc
index ad26527c01a76b606dccde5bc619b4b83c4f6c55..aa7117931f4859a99b4fd1ff92a5cb48df48aa0f 100644
--- a/remoting/host/desktop_capturer_proxy.cc
+++ b/remoting/host/desktop_capturer_proxy.cc
@@ -44,7 +44,7 @@ DesktopCapturerProxy::Core::Core(
scoped_ptr<webrtc::DesktopCapturer> capturer)
: proxy_(proxy),
caller_task_runner_(base::ThreadTaskRunnerHandle::Get()),
- capturer_(capturer.Pass()) {
+ capturer_(std::move(capturer)) {
thread_checker_.DetachFromThread();
}
@@ -87,7 +87,7 @@ DesktopCapturerProxy::DesktopCapturerProxy(
: capture_task_runner_(capture_task_runner),
weak_factory_(this) {
core_.reset(new Core(weak_factory_.GetWeakPtr(), capture_task_runner,
- capturer.Pass()));
+ std::move(capturer)));
}
void DesktopCapturerProxy::Start(Callback* callback) {

Powered by Google App Engine
This is Rietveld 408576698