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

Unified Diff: ui/wm/core/cursor_manager.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/wm/core/capture_controller_unittest.cc ('k') | ui/wm/core/nested_accelerator_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/wm/core/cursor_manager.cc
diff --git a/ui/wm/core/cursor_manager.cc b/ui/wm/core/cursor_manager.cc
index e9f988566a3e68ec8c754cffc9ed20a3ed914db1..163c70116551fac0a44a8db52a9f2f043e3307e7 100644
--- a/ui/wm/core/cursor_manager.cc
+++ b/ui/wm/core/cursor_manager.cc
@@ -4,6 +4,8 @@
#include "ui/wm/core/cursor_manager.h"
+#include <utility>
+
#include "base/logging.h"
#include "ui/aura/client/cursor_client_observer.h"
#include "ui/wm/core/native_cursor_manager.h"
@@ -71,11 +73,10 @@ class CursorState {
} // namespace internal
CursorManager::CursorManager(scoped_ptr<NativeCursorManager> delegate)
- : delegate_(delegate.Pass()),
+ : delegate_(std::move(delegate)),
cursor_lock_count_(0),
current_state_(new internal::CursorState),
- state_on_unlock_(new internal::CursorState) {
-}
+ state_on_unlock_(new internal::CursorState) {}
CursorManager::~CursorManager() {
}
« no previous file with comments | « ui/wm/core/capture_controller_unittest.cc ('k') | ui/wm/core/nested_accelerator_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698