 Chromium Code Reviews
 Chromium Code Reviews Issue 809903005:
  ui/views: Cleanup usage of scoped_ptr.  (Closed) 
  Base URL: https://chromium.googlesource.com/chromium/src.git@master
    
  
    Issue 809903005:
  ui/views: Cleanup usage of scoped_ptr.  (Closed) 
  Base URL: https://chromium.googlesource.com/chromium/src.git@master| 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 ---------------------------------------------------------- |