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

Unified Diff: ash/wm/lock_window_state.cc

Issue 1547223002: Convert Pass()→std::move() in //ash (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 | « ash/wm/lock_state_controller_unittest.cc ('k') | ash/wm/maximize_mode/maximize_mode_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/lock_window_state.cc
diff --git a/ash/wm/lock_window_state.cc b/ash/wm/lock_window_state.cc
index 6230dd13dbd0b3eac8fde5069de3aad920950b38..7e5b4ec37331f5eb57087b25d8d1e95595bc6f87 100644
--- a/ash/wm/lock_window_state.cc
+++ b/ash/wm/lock_window_state.cc
@@ -4,6 +4,8 @@
#include "ash/wm/lock_window_state.h"
+#include <utility>
+
#include "ash/display/display_manager.h"
#include "ash/screen_util.h"
#include "ash/shell.h"
@@ -112,7 +114,7 @@ void LockWindowState::DetachState(wm::WindowState* window_state) {
wm::WindowState* LockWindowState::SetLockWindowState(aura::Window* window) {
scoped_ptr<wm::WindowState::State> lock_state(new LockWindowState(window));
scoped_ptr<wm::WindowState::State> old_state(
- wm::GetWindowState(window)->SetStateObject(lock_state.Pass()));
+ wm::GetWindowState(window)->SetStateObject(std::move(lock_state)));
return wm::GetWindowState(window);
}
« no previous file with comments | « ash/wm/lock_state_controller_unittest.cc ('k') | ash/wm/maximize_mode/maximize_mode_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698