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

Unified Diff: ui/base/nine_image_painter_factory.cc

Issue 1868363002: Replace scoped_ptr with std::unique_ptr in //ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@scopedptrcc
Patch Set: scopedptrui: rebase-make_scoped_ptr Created 4 years, 8 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/base/nine_image_painter_factory.h ('k') | ui/base/resource/data_pack.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/nine_image_painter_factory.cc
diff --git a/ui/base/nine_image_painter_factory.cc b/ui/base/nine_image_painter_factory.cc
index 75281a2b06ff7d46d9bce92ba463d96b742db36b..2fa7b9c103949177a5dbfb9436513ddc1f1c01bd 100644
--- a/ui/base/nine_image_painter_factory.cc
+++ b/ui/base/nine_image_painter_factory.cc
@@ -6,6 +6,7 @@
#include <stddef.h>
+#include "base/memory/ptr_util.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/gfx/nine_image_painter.h"
@@ -26,9 +27,9 @@ std::vector<gfx::ImageSkia> ImageIdsToImages(const int image_ids[]) {
} // namespace
-scoped_ptr<gfx::NineImagePainter> CreateNineImagePainter(
+std::unique_ptr<gfx::NineImagePainter> CreateNineImagePainter(
const int image_ids[]) {
- return make_scoped_ptr(
+ return base::WrapUnique(
new gfx::NineImagePainter(ImageIdsToImages(image_ids)));
}
« no previous file with comments | « ui/base/nine_image_painter_factory.h ('k') | ui/base/resource/data_pack.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698