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

Unified Diff: ui/views/painter.cc

Issue 2259753003: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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/mus/window_tree_host_mus.cc ('k') | ui/views/style/mac/dialog_button_border_mac_unittest.cc » ('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 c9cc6a64328aaf6fc5bd0b8a7976320a64152999..5993c92527df14f79c60e35a4b1568b619bf3738 100644
--- a/ui/views/painter.cc
+++ b/ui/views/painter.cc
@@ -344,20 +344,20 @@ Painter* Painter::CreateImageGridPainter(const int image_ids[]) {
// static
std::unique_ptr<Painter> Painter::CreateDashedFocusPainter() {
- return base::WrapUnique(new DashedFocusPainter(gfx::Insets()));
+ return base::MakeUnique<DashedFocusPainter>(gfx::Insets());
}
// static
std::unique_ptr<Painter> Painter::CreateDashedFocusPainterWithInsets(
const gfx::Insets& insets) {
- return base::WrapUnique(new DashedFocusPainter(insets));
+ return base::MakeUnique<DashedFocusPainter>(insets);
}
// static
std::unique_ptr<Painter> Painter::CreateSolidFocusPainter(
SkColor color,
const gfx::Insets& insets) {
- return base::WrapUnique(new SolidFocusPainter(color, insets));
+ return base::MakeUnique<SolidFocusPainter>(color, insets);
}
// HorizontalPainter ----------------------------------------------------------
« no previous file with comments | « ui/views/mus/window_tree_host_mus.cc ('k') | ui/views/style/mac/dialog_button_border_mac_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698