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

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: no need of Pass() Created 5 years, 11 months 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/views/event_monitor_mac.mm ('k') | ui/views/test/event_generator_delegate_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/painter.cc
diff --git a/ui/views/painter.cc b/ui/views/painter.cc
index 56dedb1e99e2dfc19a10e0652f72d1b20e99e721..42db547d9a0b1509eab50ce82f5deefdea5f294c 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()));
}
// 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));
}
// 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));
}
// HorizontalPainter ----------------------------------------------------------
« no previous file with comments | « ui/views/event_monitor_mac.mm ('k') | ui/views/test/event_generator_delegate_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698