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

Unified Diff: ui/views/painter.cc

Issue 809903005: ui/views: Cleanup usage of scoped_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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: ui/views/painter.cc
diff --git a/ui/views/painter.cc b/ui/views/painter.cc
index 2dcb0c4a5d62791c5f68654af699bee782c338c7..870a7fe1abbd8b8af316c424bf7f88faf7ce098d 100644
--- a/ui/views/painter.cc
+++ b/ui/views/painter.cc
@@ -272,20 +272,20 @@ Painter* Painter::CreateImageGridPainter(const int image_ids[]) {
// static
scoped_ptr<Painter> Painter::CreateDashedFocusPainter() {
- return scoped_ptr<Painter>(new DashedFocusPainter(gfx::Insets())).Pass();
+ return make_scoped_ptr(new DashedFocusPainter(gfx::Insets())).Pass();
sky 2015/01/05 17:45:04 No .Pass() in these three.
tfarina 2015/01/08 20:43:26 Done.
}
// static
scoped_ptr<Painter> Painter::CreateDashedFocusPainterWithInsets(
const gfx::Insets& insets) {
- return scoped_ptr<Painter>(new DashedFocusPainter(insets)).Pass();
+ return make_scoped_ptr(new DashedFocusPainter(insets)).Pass();
}
// static
scoped_ptr<Painter> Painter::CreateSolidFocusPainter(
SkColor color,
const gfx::Insets& insets) {
- return scoped_ptr<Painter>(new SolidFocusPainter(color, insets)).Pass();
+ return make_scoped_ptr(new SolidFocusPainter(color, insets)).Pass();
}
// HorizontalPainter ----------------------------------------------------------

Powered by Google App Engine
This is Rietveld 408576698