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

Unified Diff: ash/wm/overview/window_grid.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
Index: ash/wm/overview/window_grid.cc
diff --git a/ash/wm/overview/window_grid.cc b/ash/wm/overview/window_grid.cc
index 713c7cb235bd0195e5dd07d2eb9c871d801b0926..ec3b362d34fd1b6ba3beb88acb46b75d5dd5ecc2 100644
--- a/ash/wm/overview/window_grid.cc
+++ b/ash/wm/overview/window_grid.cc
@@ -7,6 +7,7 @@
#include <algorithm>
#include <functional>
#include <set>
+#include <utility>
#include <vector>
#include "ash/ash_switches.h"
@@ -57,8 +58,7 @@ class CleanupWidgetAfterAnimationObserver
CleanupWidgetAfterAnimationObserver::CleanupWidgetAfterAnimationObserver(
scoped_ptr<views::Widget> widget)
- : widget_(widget.Pass()) {
-}
+ : widget_(std::move(widget)) {}
CleanupWidgetAfterAnimationObserver::~CleanupWidgetAfterAnimationObserver() {
}
@@ -477,7 +477,7 @@ void WindowGrid::MoveSelectionWidget(WindowSelector::Direction direction,
// CleanupWidgetAfterAnimationObserver will delete itself (and the
// widget) when the movement animation is complete.
animation_settings.AddObserver(
- new CleanupWidgetAfterAnimationObserver(selection_widget_.Pass()));
+ new CleanupWidgetAfterAnimationObserver(std::move(selection_widget_)));
old_selection->SetOpacity(0);
old_selection->GetNativeWindow()->SetBounds(
old_selection->GetNativeWindow()->bounds() + fade_out_direction);
« no previous file with comments | « ash/wm/maximize_mode/scoped_disable_internal_mouse_and_keyboard_x11.cc ('k') | ash/wm/overview/window_selector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698