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

Unified Diff: ui/native_theme/native_theme_aura.cc

Issue 1539583003: Convert Pass()→std::move() in ui/ (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 | « ui/message_center/views/message_view.cc ('k') | ui/snapshot/snapshot_aura.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/native_theme/native_theme_aura.cc
diff --git a/ui/native_theme/native_theme_aura.cc b/ui/native_theme/native_theme_aura.cc
index ad6f34db861444fc58a658a354548d76c0bc75b0..19f066f2af09b38a3f235376014fcb2c4ec5b3fd 100644
--- a/ui/native_theme/native_theme_aura.cc
+++ b/ui/native_theme/native_theme_aura.cc
@@ -5,6 +5,7 @@
#include "ui/native_theme/native_theme_aura.h"
#include <limits>
+#include <utility>
#include "base/logging.h"
#include "ui/base/layout.h"
@@ -282,7 +283,7 @@ scoped_ptr<NativeThemeAura::DualPainter> NativeThemeAura::CreateDualPainter(
fill_alphas,
CreateNineImagePainter(stroke_image_ids),
stroke_alphas));
- return dual_painter.Pass();
+ return dual_painter;
}
void NativeThemeAura::PaintDualPainter(
@@ -325,9 +326,9 @@ NativeThemeAura::DualPainter::DualPainter(
const uint8 fill_alphas[kNumStates],
scoped_ptr<NineImagePainter> stroke_painter,
const uint8 stroke_alphas[kNumStates])
- : fill_painter(fill_painter.Pass()),
+ : fill_painter(std::move(fill_painter)),
fill_alphas(fill_alphas),
- stroke_painter(stroke_painter.Pass()),
+ stroke_painter(std::move(stroke_painter)),
stroke_alphas(stroke_alphas) {}
NativeThemeAura::DualPainter::~DualPainter() {}
« no previous file with comments | « ui/message_center/views/message_view.cc ('k') | ui/snapshot/snapshot_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698