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

Unified Diff: ash/host/transformer_helper.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/host/ash_window_tree_host_x11.cc ('k') | ash/magnifier/magnification_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/host/transformer_helper.cc
diff --git a/ash/host/transformer_helper.cc b/ash/host/transformer_helper.cc
index af56d8a8d64fdaa2c38e26e9289ad7d9d8fab353..aba946053814031271959e57c01624c511824801 100644
--- a/ash/host/transformer_helper.cc
+++ b/ash/host/transformer_helper.cc
@@ -4,6 +4,8 @@
#include "ash/host/transformer_helper.h"
+#include <utility>
+
#include "ash/host/ash_window_tree_host.h"
#include "ash/host/root_window_transformer.h"
#include "ui/aura/window.h"
@@ -73,12 +75,12 @@ gfx::Insets TransformerHelper::GetHostInsets() const {
void TransformerHelper::SetTransform(const gfx::Transform& transform) {
scoped_ptr<RootWindowTransformer> transformer(new SimpleRootWindowTransformer(
ash_host_->AsWindowTreeHost()->window(), transform));
- SetRootWindowTransformer(transformer.Pass());
+ SetRootWindowTransformer(std::move(transformer));
}
void TransformerHelper::SetRootWindowTransformer(
scoped_ptr<RootWindowTransformer> transformer) {
- transformer_ = transformer.Pass();
+ transformer_ = std::move(transformer);
aura::WindowTreeHost* host = ash_host_->AsWindowTreeHost();
aura::Window* window = host->window();
window->SetTransform(transformer_->GetTransform());
« no previous file with comments | « ash/host/ash_window_tree_host_x11.cc ('k') | ash/magnifier/magnification_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698