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

Unified Diff: ash/rotator/screen_rotation_animator.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/rotator/screen_rotation_animator.cc
diff --git a/ash/rotator/screen_rotation_animator.cc b/ash/rotator/screen_rotation_animator.cc
index 8996855d3666ae0d168878a4c5739d7981729ad9..c60cbe294412821bf90fc8d143b7cf650c929617 100644
--- a/ash/rotator/screen_rotation_animator.cc
+++ b/ash/rotator/screen_rotation_animator.cc
@@ -5,6 +5,7 @@
#include "ash/rotator/screen_rotation_animator.h"
#include <string>
+#include <utility>
#include <vector>
#include "ash/display/display_info.h"
@@ -98,8 +99,7 @@ class LayerCleanupObserver : public ui::LayerAnimationObserver {
LayerCleanupObserver::LayerCleanupObserver(
scoped_ptr<ui::LayerTreeOwner> layer_tree_owner)
- : layer_tree_owner_(layer_tree_owner.Pass()), sequence_(nullptr) {
-}
+ : layer_tree_owner_(std::move(layer_tree_owner)), sequence_(nullptr) {}
LayerCleanupObserver::~LayerCleanupObserver() {
// We must eplicitly detach from |sequence_| because we return true from
@@ -176,7 +176,7 @@ void RotateScreen(int64_t display_id,
root_window->layer()->StackAtTop(old_layer_tree->root());
scoped_ptr<LayerCleanupObserver> layer_cleanup_observer(
- new LayerCleanupObserver(old_layer_tree.Pass()));
+ new LayerCleanupObserver(std::move(old_layer_tree)));
Shell::GetInstance()->display_manager()->SetDisplayRotation(
display_id, new_rotation, source);
« no previous file with comments | « ash/metrics/desktop_task_switch_metric_recorder_unittest.cc ('k') | ash/shelf/shelf_button_pressed_metric_tracker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698