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

Unified Diff: cc/layers/painted_scrollbar_layer.cc

Issue 1455023002: cc: Replace Pass() with std::move() in some subdirs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pass-cc
Patch Set: pass-cc2: . Created 5 years, 1 month 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 | « cc/layers/layer_utils_unittest.cc ('k') | cc/layers/picture_image_layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/painted_scrollbar_layer.cc
diff --git a/cc/layers/painted_scrollbar_layer.cc b/cc/layers/painted_scrollbar_layer.cc
index 8ee3cb75bd148fdac9dcd478e80a4e97d2e86c12..a074850152901b7361bcc77718fe0a37dc710a02 100644
--- a/cc/layers/painted_scrollbar_layer.cc
+++ b/cc/layers/painted_scrollbar_layer.cc
@@ -35,15 +35,15 @@ scoped_refptr<PaintedScrollbarLayer> PaintedScrollbarLayer::Create(
const LayerSettings& settings,
scoped_ptr<Scrollbar> scrollbar,
int scroll_layer_id) {
- return make_scoped_refptr(
- new PaintedScrollbarLayer(settings, scrollbar.Pass(), scroll_layer_id));
+ return make_scoped_refptr(new PaintedScrollbarLayer(
+ settings, std::move(scrollbar), scroll_layer_id));
}
PaintedScrollbarLayer::PaintedScrollbarLayer(const LayerSettings& settings,
scoped_ptr<Scrollbar> scrollbar,
int scroll_layer_id)
: Layer(settings),
- scrollbar_(scrollbar.Pass()),
+ scrollbar_(std::move(scrollbar)),
scroll_layer_id_(scroll_layer_id),
internal_contents_scale_(1.f),
thumb_thickness_(scrollbar_->ThumbThickness()),
« no previous file with comments | « cc/layers/layer_utils_unittest.cc ('k') | cc/layers/picture_image_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698