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

Unified Diff: ui/base/nine_image_painter_factory.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/base/ime/linux/fake_input_method_context_factory.cc ('k') | ui/compositor/layer_owner.cc » ('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 2fa7b9c103949177a5dbfb9436513ddc1f1c01bd..57455850bfa425d507ff44f7ce241511dfcabcc1 100644
--- a/ui/base/nine_image_painter_factory.cc
+++ b/ui/base/nine_image_painter_factory.cc
@@ -29,8 +29,7 @@ std::vector<gfx::ImageSkia> ImageIdsToImages(const int image_ids[]) {
std::unique_ptr<gfx::NineImagePainter> CreateNineImagePainter(
const int image_ids[]) {
- return base::WrapUnique(
- new gfx::NineImagePainter(ImageIdsToImages(image_ids)));
+ return base::MakeUnique<gfx::NineImagePainter>(ImageIdsToImages(image_ids));
}
} // namespace ui
« no previous file with comments | « ui/base/ime/linux/fake_input_method_context_factory.cc ('k') | ui/compositor/layer_owner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698