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

Unified Diff: ui/aura/test/aura_test_utils.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/aura/scoped_window_targeter.cc ('k') | ui/aura/test/env_test_helper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/test/aura_test_utils.cc
diff --git a/ui/aura/test/aura_test_utils.cc b/ui/aura/test/aura_test_utils.cc
index ce40df855e89e107da40a3272a38db78094fb16c..7a11b19485d54b2426648859d42e84acbaec9035 100644
--- a/ui/aura/test/aura_test_utils.cc
+++ b/ui/aura/test/aura_test_utils.cc
@@ -4,6 +4,8 @@
#include "ui/aura/test/aura_test_utils.h"
+#include <utility>
+
#include "ui/aura/window_event_dispatcher.h"
#include "ui/aura/window_tree_host.h"
@@ -19,7 +21,7 @@ class WindowTreeHostTestApi {
}
void set_dispatcher(scoped_ptr<WindowEventDispatcher> dispatcher) {
- host_->dispatcher_ = dispatcher.Pass();
+ host_->dispatcher_ = std::move(dispatcher);
}
private:
@@ -36,7 +38,7 @@ const gfx::Point& QueryLatestMousePositionRequestInHost(WindowTreeHost* host) {
void SetHostDispatcher(WindowTreeHost* host,
scoped_ptr<WindowEventDispatcher> dispatcher) {
WindowTreeHostTestApi host_test_api(host);
- host_test_api.set_dispatcher(dispatcher.Pass());
+ host_test_api.set_dispatcher(std::move(dispatcher));
}
} // namespace test
« no previous file with comments | « ui/aura/scoped_window_targeter.cc ('k') | ui/aura/test/env_test_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698