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

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: 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/host_config.cc ('k') | remoting/host/input_injector_chromeos.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/host_window_proxy.cc
diff --git a/remoting/host/host_window_proxy.cc b/remoting/host/host_window_proxy.cc
index f539cfb47a1c86d641f1bd8d231982c1e849f390..4fd0fae9cbccbe06b3c45008881975c2e1a12400 100644
--- a/remoting/host/host_window_proxy.cc
+++ b/remoting/host/host_window_proxy.cc
@@ -4,6 +4,8 @@
#include "remoting/host/host_window_proxy.h"
+#include <utility>
+
#include "base/bind.h"
#include "base/location.h"
#include "base/logging.h"
@@ -75,7 +77,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() {
@@ -97,7 +99,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());
}
« no previous file with comments | « remoting/host/host_config.cc ('k') | remoting/host/input_injector_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698