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

Unified Diff: remoting/host/host_window_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/host_window_proxy.cc
diff --git a/remoting/host/host_window_proxy.cc b/remoting/host/host_window_proxy.cc
index e5be61676e626eeb06a6663c4b6510c01f113227..00edf8228ceb759a25d0c24758de8ef6df942001 100644
--- a/remoting/host/host_window_proxy.cc
+++ b/remoting/host/host_window_proxy.cc
@@ -74,7 +74,7 @@ HostWindowProxy::HostWindowProxy(
// Detach |host_window| from the calling thread so that |Core| could run it on
// the |ui_task_runner_| thread.
host_window->DetachFromThread();
- core_ = new Core(caller_task_runner, ui_task_runner, host_window.Pass());
+ core_ = new Core(caller_task_runner, ui_task_runner, std::move(host_window));
}
HostWindowProxy::~HostWindowProxy() {
@@ -96,7 +96,7 @@ HostWindowProxy::Core::Core(
scoped_ptr<HostWindow> host_window)
: caller_task_runner_(caller_task_runner),
ui_task_runner_(ui_task_runner),
- host_window_(host_window.Pass()),
+ host_window_(std::move(host_window)),
weak_factory_(this) {
DCHECK(caller_task_runner->BelongsToCurrentThread());
}

Powered by Google App Engine
This is Rietveld 408576698