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

Unified Diff: ui/aura/window_tree_host_platform.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/window_targeter_unittest.cc ('k') | ui/base/accelerators/accelerator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/window_tree_host_platform.cc
diff --git a/ui/aura/window_tree_host_platform.cc b/ui/aura/window_tree_host_platform.cc
index 2a7d0541a744fa9e5747798d2f57699cc918aac6..a696eea6781b9b3327302065330485f613a734f1 100644
--- a/ui/aura/window_tree_host_platform.cc
+++ b/ui/aura/window_tree_host_platform.cc
@@ -4,6 +4,8 @@
#include "ui/aura/window_tree_host_platform.h"
+#include <utility>
+
#include "base/trace_event/trace_event.h"
#include "ui/aura/window_event_dispatcher.h"
#include "ui/compositor/compositor.h"
@@ -55,7 +57,7 @@ WindowTreeHostPlatform::WindowTreeHostPlatform()
void WindowTreeHostPlatform::SetPlatformWindow(
scoped_ptr<ui::PlatformWindow> window) {
- window_ = window.Pass();
+ window_ = std::move(window);
}
WindowTreeHostPlatform::~WindowTreeHostPlatform() {
« no previous file with comments | « ui/aura/window_targeter_unittest.cc ('k') | ui/base/accelerators/accelerator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698