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

Unified Diff: ui/views/mus/window_manager_connection.cc

Issue 1539583003: Convert Pass()→std::move() in ui/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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
« no previous file with comments | « ui/views/mus/surface_binding.cc ('k') | ui/views/style/platform_style.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/mus/window_manager_connection.cc
diff --git a/ui/views/mus/window_manager_connection.cc b/ui/views/mus/window_manager_connection.cc
index 3629b94fdde3709efa326a17185179e9f9b44f74..d4bceb6e1a702c8ef081d5a8dacf8af621a565d8 100644
--- a/ui/views/mus/window_manager_connection.cc
+++ b/ui/views/mus/window_manager_connection.cc
@@ -4,6 +4,8 @@
#include "ui/views/mus/window_manager_connection.h"
+#include <utility>
+
#include "base/lazy_instance.h"
#include "base/threading/thread_local.h"
#include "base/threading/thread_restrictions.h"
@@ -112,13 +114,13 @@ mus::Window* WindowManagerConnection::NewWindow(
mojo::InterfaceRequest<mus::mojom::WindowTreeClient>
window_tree_client_request = GetProxy(&window_tree_client);
window_manager_->OpenWindow(
- window_tree_client.Pass(),
+ std::move(window_tree_client),
mojo::Map<mojo::String, mojo::Array<uint8_t>>::From(properties));
base::ThreadRestrictions::ScopedAllowWait allow_wait;
mus::WindowTreeConnection* window_tree_connection =
mus::WindowTreeConnection::Create(
- this, window_tree_client_request.Pass(),
+ this, std::move(window_tree_client_request),
mus::WindowTreeConnection::CreateType::WAIT_FOR_EMBED);
DCHECK(window_tree_connection->GetRoot());
return window_tree_connection->GetRoot();
« no previous file with comments | « ui/views/mus/surface_binding.cc ('k') | ui/views/style/platform_style.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698