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

Unified Diff: ash/wm/lock_window_state.cc

Issue 1867223004: Convert //ash from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 4 years, 8 months 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.h » ('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 7e5b4ec37331f5eb57087b25d8d1e95595bc6f87..d5f89a3d707be24b6396f2e585764c52808bbac3 100644
--- a/ash/wm/lock_window_state.cc
+++ b/ash/wm/lock_window_state.cc
@@ -112,8 +112,9 @@ void LockWindowState::DetachState(wm::WindowState* window_state) {
// static
wm::WindowState* LockWindowState::SetLockWindowState(aura::Window* window) {
- scoped_ptr<wm::WindowState::State> lock_state(new LockWindowState(window));
- scoped_ptr<wm::WindowState::State> old_state(
+ std::unique_ptr<wm::WindowState::State> lock_state(
+ new LockWindowState(window));
+ std::unique_ptr<wm::WindowState::State> old_state(
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.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698