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

Unified Diff: remoting/host/mouse_shape_pump.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/mouse_shape_pump.cc
diff --git a/remoting/host/mouse_shape_pump.cc b/remoting/host/mouse_shape_pump.cc
index 133771ea2935ef528397d553aa358db8e7ccd8a6..47bf93cae1ed2e9dba819c6bf26825490e39219c 100644
--- a/remoting/host/mouse_shape_pump.cc
+++ b/remoting/host/mouse_shape_pump.cc
@@ -53,7 +53,7 @@ MouseShapePump::Core::Core(
scoped_ptr<webrtc::MouseCursorMonitor> mouse_cursor_monitor)
: proxy_(proxy),
caller_task_runner_(caller_task_runner),
- mouse_cursor_monitor_(mouse_cursor_monitor.Pass()),
+ mouse_cursor_monitor_(std::move(mouse_cursor_monitor)),
capture_timer_(true, true) {
thread_checker_.DetachFromThread();
}
@@ -121,7 +121,7 @@ MouseShapePump::MouseShapePump(
weak_factory_(this) {
core_.reset(new Core(weak_factory_.GetWeakPtr(),
base::ThreadTaskRunnerHandle::Get(),
- mouse_cursor_monitor.Pass()));
+ std::move(mouse_cursor_monitor)));
capture_task_runner_->PostTask(
FROM_HERE, base::Bind(&Core::Start, base::Unretained(core_.get())));
}

Powered by Google App Engine
This is Rietveld 408576698