summaryrefslogtreecommitdiffstats
path: root/components/mus/ws/window_tree_host_connection.cc
diff options
context:
space:
mode:
Diffstat (limited to 'components/mus/ws/window_tree_host_connection.cc')
-rw-r--r--components/mus/ws/window_tree_host_connection.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/components/mus/ws/window_tree_host_connection.cc b/components/mus/ws/window_tree_host_connection.cc
index 638b4eb..f488fc4 100644
--- a/components/mus/ws/window_tree_host_connection.cc
+++ b/components/mus/ws/window_tree_host_connection.cc
@@ -14,7 +14,7 @@ namespace ws {
WindowTreeHostConnection::WindowTreeHostConnection(
scoped_ptr<WindowTreeHostImpl> host_impl,
ConnectionManager* manager)
- : host_(host_impl.Pass()),
+ : host_(std::move(host_impl)),
tree_(nullptr),
connection_manager_(manager),
connection_closed_(false) {}
@@ -53,9 +53,9 @@ WindowTreeHostConnectionImpl::WindowTreeHostConnectionImpl(
scoped_ptr<WindowTreeHostImpl> host_impl,
mojom::WindowTreeClientPtr client,
ConnectionManager* manager)
- : WindowTreeHostConnection(host_impl.Pass(), manager),
- binding_(window_tree_host(), request.Pass()),
- client_(client.Pass()) {}
+ : WindowTreeHostConnection(std::move(host_impl), manager),
+ binding_(window_tree_host(), std::move(request)),
+ client_(std::move(client)) {}
WindowTreeHostConnectionImpl::~WindowTreeHostConnectionImpl() {}
@@ -63,7 +63,7 @@ void WindowTreeHostConnectionImpl::OnDisplayInitialized() {
connection_manager()->AddHost(this);
set_window_tree(connection_manager()->EmbedAtWindow(
kInvalidConnectionId, window_tree_host()->root_window()->id(),
- mojom::WindowTree::ACCESS_POLICY_EMBED_ROOT, client_.Pass()));
+ mojom::WindowTree::ACCESS_POLICY_EMBED_ROOT, std::move(client_)));
}
} // namespace ws