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

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: 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/me2me_desktop_environment.cc ('k') | remoting/host/mouse_shape_pump_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/mouse_shape_pump.cc
diff --git a/remoting/host/mouse_shape_pump.cc b/remoting/host/mouse_shape_pump.cc
index b32e4a2a72f6978609dcd84e6c752530cdb68e2e..98d131e4777ac9e72118a64b70dd71ff5bd6e813 100644
--- a/remoting/host/mouse_shape_pump.cc
+++ b/remoting/host/mouse_shape_pump.cc
@@ -6,6 +6,8 @@
#include <stdint.h>
+#include <utility>
+
#include "base/bind.h"
#include "base/location.h"
#include "base/macros.h"
@@ -56,7 +58,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();
}
@@ -124,7 +126,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())));
}
« no previous file with comments | « remoting/host/me2me_desktop_environment.cc ('k') | remoting/host/mouse_shape_pump_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698